Skip to content

Commit 705e435

Browse files
Taym95domenic
authored andcommitted
Fix [[ViewedArrayBuffer]].[[ByteLength]] name in ReadableStreamBYOBRequest doc
`[[ViewedArrayBuffer]].[[ArrayBufferByteLength]]` was used wrongly instead of `[[ViewedArrayBuffer]].[[ByteLength]]` ReadableStreamBYOBRequest
1 parent d81b558 commit 705e435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ value: newViewOnSameMemory, done: true }</code> for closed streams. If the strea
14461446
method steps are:
14471447

14481448
1. If |view|.\[[ByteLength]] is 0, return [=a promise rejected with=] a {{TypeError}} exception.
1449-
1. If |view|.\[[ViewedArrayBuffer]].\[[ArrayBufferByteLength]] is 0, return [=a promise rejected
1449+
1. If |view|.\[[ViewedArrayBuffer]].\[[ByteLength]] is 0, return [=a promise rejected
14501450
with=] a {{TypeError}} exception.
14511451
1. If ! [$IsDetachedBuffer$](|view|.\[[ViewedArrayBuffer]]) is true, return
14521452
[=a promise rejected with=] a {{TypeError}} exception.
@@ -1876,7 +1876,7 @@ has the following [=struct/items=]:
18761876
for="ReadableByteStreamController">enqueue(|chunk|)</dfn> method steps are:
18771877

18781878
1. If |chunk|.\[[ByteLength]] is 0, throw a {{TypeError}} exception.
1879-
1. If |chunk|.\[[ViewedArrayBuffer]].\[[ArrayBufferByteLength]] is 0, throw a {{TypeError}}
1879+
1. If |chunk|.\[[ViewedArrayBuffer]].\[[ByteLength]] is 0, throw a {{TypeError}}
18801880
exception.
18811881
1. If [=this=].[=ReadableByteStreamController/[[closeRequested]]=] is true, throw a {{TypeError}}
18821882
exception.

0 commit comments

Comments
 (0)