Skip to content

Commit

Permalink
Use (ArrayBufferView or undefined) for ReadableStreamBYOBReadResult
Browse files Browse the repository at this point in the history
The standard returns an ReadableStreamBYOBReadResult with an undefined
value, and the tests rely on this, but it wasn't permitted by the IDL. Fix the IDL
to match the actual behaviour.

Closes whatwg/webidl#1094.
  • Loading branch information
saschanaz committed Feb 2, 2022
1 parent 5afb0e0 commit 5fc90be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ interface ReadableStreamBYOBReader {
ReadableStreamBYOBReader includes ReadableStreamGenericReader;

dictionary ReadableStreamBYOBReadResult {
ArrayBufferView value;
(ArrayBufferView or undefined) value;
boolean done;
};
</xmp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dictionary ReadableStreamBYOBReadResult {
ArrayBufferView value;
(ArrayBufferView or undefined) value;
boolean done;
};

0 comments on commit 5fc90be

Please sign in to comment.