(stream4)
| 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. |
nothing calls this directly
no test coverage detected