ReadableStreamBYOBRequest.view is always constructed as a Uint8Array, and the specification will be updated to enforce this. Spec change: whatwg/streams#1367
We should reflect this by changing the documented return type from ArrayBufferView to Uint8Array here:
|
/** |
|
* @readonly |
|
* @type {ArrayBufferView} |
|
*/ |
|
get view() { |
ReadableStreamBYOBRequest.viewis always constructed as aUint8Array, and the specification will be updated to enforce this. Spec change: whatwg/streams#1367We should reflect this by changing the documented return type from
ArrayBufferViewtoUint8Arrayhere:node/lib/internal/webstreams/readablestream.js
Lines 672 to 676 in 9f5a2c9