* @param {ReadableStream} stream
(stream)
| 1000 | * @param {ReadableStream} stream |
| 1001 | */ |
| 1002 | constructor(stream) { |
| 1003 | if (!isReadableStream(stream)) |
| 1004 | throw new ERR_INVALID_ARG_TYPE('stream', 'ReadableStream', stream); |
| 1005 | this[kState] = { |
| 1006 | // All fields are unconditionally assigned during setup. |
| 1007 | stream: undefined, |
| 1008 | readIntoRequests: undefined, |
| 1009 | close: undefined, |
| 1010 | }; |
| 1011 | setupReadableStreamBYOBReader(this, stream); |
| 1012 | } |
| 1013 | |
| 1014 | /** |
| 1015 | * @param {ArrayBufferView} view |
nothing calls this directly
no test coverage detected