MCPcopy Index your code
hub / github.com/nodejs/node / constructor

Method constructor

lib/internal/webstreams/readablestream.js:1002–1012  ·  view source on GitHub ↗

* @param {ReadableStream} stream

(stream)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isReadableStreamFunction · 0.50

Tested by

no test coverage detected