Skip to content

Commit

Permalink
Fix [[ViewedArrayBuffer]].[[ByteLength]] name in ReadableStreamBYOB…
Browse files Browse the repository at this point in the history
…Request doc

`[[ViewedArrayBuffer]].[[ArrayBufferByteLength]]` was used wrongly instead of `[[ViewedArrayBuffer]].[[ByteLength]]` ReadableStreamBYOBRequest
  • Loading branch information
Taym95 authored Jan 19, 2025
1 parent f73f587 commit 0a1a72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ value: newViewOnSameMemory, done: true }</code> for closed streams. If the strea
method steps are:

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

1. If |chunk|.\[[ByteLength]] is 0, throw a {{TypeError}} exception.
1. If |chunk|.\[[ViewedArrayBuffer]].\[[ArrayBufferByteLength]] is 0, throw a {{TypeError}}
1. If |chunk|.\[[ViewedArrayBuffer]].\[[ByteLength]] is 0, throw a {{TypeError}}
exception.
1. If [=this=].[=ReadableByteStreamController/[[closeRequested]]=] is true, throw a {{TypeError}}
exception.
Expand Down

0 comments on commit 0a1a72c

Please sign in to comment.