Skip to content

Commit c97f298

Browse files
committed
Switch to using WebIDL for detached, instead of directly ES
1 parent d5a4ed2 commit c97f298

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

index.src.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,8 +1916,8 @@
19161916
1. If {{AudioDecoderConfig/codec}} is empty after
19171917
[=strip leading and trailing ASCII whitespace|stripping leading and trailing ASCII whitespace=],
19181918
return `false`.
1919-
2. If the result of running IsDetachedBuffer (described in
1920-
[[!ECMASCRIPT]]) on {{AudioDecoderConfig/description}} is `true`, return `false`.
1919+
2. If {{AudioDecoderConfig/description}} is [[=BufferSource/detached=]], return
1920+
false.
19211921
3. Return `true`.
19221922

19231923
<dl>
@@ -1972,8 +1972,8 @@
19721972
return `false`.
19731973
5. If {{VideoDecoderConfig/displayAspectWidth}} = 0 or
19741974
{{VideoDecoderConfig/displayAspectHeight}} = 0, return `false`.
1975-
6. If the result of running IsDetachedBuffer (described in
1976-
[[!ECMASCRIPT]]) on {{VideoDecoderConfig/description}} is `true`, return `false`.
1975+
6. If {{VideoDecoderConfig/description}} is [[=BufferSource/detached=]],
1976+
return false.
19771977
7. Return `true`.
19781978

19791979
<dl>
@@ -5699,8 +5699,7 @@
56995699
2. If |data| is of type {{ReadableStream}} and the ReadableStream is
57005700
[=ReadableStream/disturbed=] or [=ReadableStream/locked=], return `false`.
57015701
3. If |data| is of type {{BufferSource}}:
5702-
1. If the result of running IsDetachedBuffer (described in
5703-
[[!ECMASCRIPT]]) on |data| is `true`, return `false`.
5702+
1. If |data| is [[=BufferSource/detached=]], return false.
57045703
2. If |data| [=list/is empty=], return `false`.
57055704
4. If {{ImageDecoderInit/desiredWidth}} [=map/exists=] and
57065705
{{ImageDecoderInit/desiredHeight}} does not exist, return `false`.

0 commit comments

Comments
 (0)