MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / constructor

Method constructor

out/cli.cjs:11886–11897  ·  view source on GitHub ↗
(stream4)

Source from the content-addressed store, hash-verified

11884 }
11885 class ReadableStreamBYOBReader2 {
11886 constructor(stream4) {
11887 assertRequiredArgument(stream4, 1, "ReadableStreamBYOBReader");
11888 assertReadableStream(stream4, "First parameter");
11889 if (IsReadableStreamLocked(stream4)) {
11890 throw new TypeError("This stream has already been locked for exclusive reading by another reader");
11891 }
11892 if (!IsReadableByteStreamController(stream4._readableStreamController)) {
11893 throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
11894 }
11895 ReadableStreamReaderGenericInitialize(this, stream4);
11896 this._readIntoRequests = new SimpleQueue();
11897 }
11898 /**
11899 * Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or
11900 * the reader's lock is released before the stream finishes closing.

Callers

nothing calls this directly

Tested by

no test coverage detected