* Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or * the reader's lock is released before the stream finishes closing.
()
| 11900 | * the reader's lock is released before the stream finishes closing. |
| 11901 | */ |
| 11902 | get closed() { |
| 11903 | if (!IsReadableStreamBYOBReader(this)) { |
| 11904 | return promiseRejectedWith(byobReaderBrandCheckException("closed")); |
| 11905 | } |
| 11906 | return this._closedPromise; |
| 11907 | } |
| 11908 | /** |
| 11909 | * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}. |
| 11910 | */ |
nothing calls this directly
no test coverage detected