Skip to content

Commit 9fc3e9b

Browse files
Jah-yeejuanarbol
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 <166608075+Jah-yee@users.noreply.github.com> PR-URL: #63017 Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com>
1 parent 5c582b4 commit 9fc3e9b

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
@@ -671,7 +671,7 @@ class ReadableStreamBYOBRequest {
671671

672672
/**
673673
* @readonly
674-
* @type {ArrayBufferView}
674+
* @type {Uint8Array}
675675
*/
676676
get view() {
677677
if (!isReadableStreamBYOBRequest(this))

0 commit comments

Comments
 (0)