Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class ReadableStreamBYOBRequest {

/**
* @readonly
* @type {ArrayBufferView}
* @type {Uint8Array}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not blocking - but looks like this can technically be null from the implementation

controller[kState].byobRequest[kState].view = null;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is true, although that only happens after you've already responded to the BYOB request. From MDN:

null if the request has already been responded to, by calling ReadableStreamBYOBRequest.respond() or ReadableStreamBYOBRequest.respondWithNewView().

*/
get view() {
if (!isReadableStreamBYOBRequest(this))
Expand Down
Loading