Skip to content

Commit 84e6dec

Browse files
webstreams: narrow ReadableStreamBYOBRequest.view to Uint8Array
ReadableStreamBYOBRequest.view is always constructed as a Uint8Array, and the specification will be updated to enforce this. Reflect this by changing the documented return type from ArrayBufferView to Uint8Array. Refs: whatwg/streams#1367 Fixes: #62952
1 parent 11f76b4 commit 84e6dec

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)