* Releases the reader's lock on the corresponding stream. After the lock is released, the reader is no longer active. * If the associated stream is errored when the lock is released, the reader will appear errored in the same way * from now on; otherwise, the reader will appear clo
()
| 10851 | * do so will throw a `TypeError` and leave the reader locked to the stream. |
| 10852 | */ |
| 10853 | releaseLock() { |
| 10854 | if (!IsReadableStreamDefaultReader(this)) { |
| 10855 | throw defaultReaderBrandCheckException("releaseLock"); |
| 10856 | } |
| 10857 | if (this._ownerReadableStream === void 0) { |
| 10858 | return; |
| 10859 | } |
| 10860 | ReadableStreamDefaultReaderRelease(this); |
| 10861 | } |
| 10862 | } |
| 10863 | Object.defineProperties(ReadableStreamDefaultReader2.prototype, { |
| 10864 | cancel: { enumerable: true }, |
nothing calls this directly
no test coverage detected