Skip to content

Commit

Permalink
Switch to using WebIDL for detached, instead of directly ES
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Mar 12, 2024
1 parent d5a4ed2 commit c97f298
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1916,8 +1916,8 @@
1. If {{AudioDecoderConfig/codec}} is empty after
[=strip leading and trailing ASCII whitespace|stripping leading and trailing ASCII whitespace=],
return `false`.
2. If the result of running IsDetachedBuffer (described in
[[!ECMASCRIPT]]) on {{AudioDecoderConfig/description}} is `true`, return `false`.
2. If {{AudioDecoderConfig/description}} is [[=BufferSource/detached=]], return
false.
3. Return `true`.

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

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

0 comments on commit c97f298

Please sign in to comment.