Skip to content

Commit 9438c83

Browse files
Jah-yeeaduh95
authored andcommitted
lib: narrow ReadableStreamBYOBRequest.view return type to Uint8Array
Follow WHATWG streams spec update: whatwg/streams#1367 ReadableStreamBYOBRequest.view is always constructed as a Uint8Array. This changes the documented return type from ArrayBufferView to Uint8Array per the updated spec. Fixes: #62952 Signed-off-by: Jah-yee <[email protected]> PR-URL: #63017 Reviewed-By: Mattias Buelens <[email protected]> Reviewed-By: Jason Zhang <[email protected]>
1 parent 9091398 commit 9438c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/webstreams/readablestream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ class ReadableStreamBYOBRequest {
665665

666666
/**
667667
* @readonly
668-
* @type {ArrayBufferView}
668+
* @type {Uint8Array}
669669
*/
670670
get view() {
671671
if (!isReadableStreamBYOBRequest(this))

0 commit comments

Comments
 (0)