MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

10785 }
10786 class ReadableStreamDefaultReader2 {
10787 constructor(stream4) {
10788 assertRequiredArgument(stream4, 1, "ReadableStreamDefaultReader");
10789 assertReadableStream(stream4, "First parameter");
10790 if (IsReadableStreamLocked(stream4)) {
10791 throw new TypeError("This stream has already been locked for exclusive reading by another reader");
10792 }
10793 ReadableStreamReaderGenericInitialize(this, stream4);
10794 this._readRequests = new SimpleQueue();
10795 }
10796 /**
10797 * Returns a promise that will be fulfilled when the stream becomes closed,
10798 * or rejected if the stream ever errors or the reader's lock is released before the stream finishes closing.

Callers

nothing calls this directly

Calls 4

assertRequiredArgumentFunction · 0.85
assertReadableStreamFunction · 0.85
IsReadableStreamLockedFunction · 0.85

Tested by

no test coverage detected