Skip to content

Commit fb1859c

Browse files
committed
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. Fixes: #62952
1 parent 34adeeb commit fb1859c

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
@@ -672,7 +672,7 @@ class ReadableStreamBYOBRequest {
672672

673673
/**
674674
* @readonly
675-
* @type {ArrayBufferView}
675+
* @type {Uint8Array}
676676
*/
677677
get view() {
678678
if (!isReadableStreamBYOBRequest(this))

0 commit comments

Comments
 (0)