Skip to content

Commit 5fc90be

Browse files
authored
Use (ArrayBufferView or undefined) for ReadableStreamBYOBReadResult
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.
1 parent 5afb0e0 commit 5fc90be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ interface ReadableStreamBYOBReader {
13081308
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
13091309

13101310
dictionary ReadableStreamBYOBReadResult {
1311-
ArrayBufferView value;
1311+
(ArrayBufferView or undefined) value;
13121312
boolean done;
13131313
};
13141314
</xmp>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dictionary ReadableStreamBYOBReadResult {
2-
ArrayBufferView value;
2+
(ArrayBufferView or undefined) value;
33
boolean done;
44
};

0 commit comments

Comments
 (0)