* 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
()
| 11977 | * do so will throw a `TypeError` and leave the reader locked to the stream. |
| 11978 | */ |
| 11979 | releaseLock() { |
| 11980 | if (!IsReadableStreamBYOBReader(this)) { |
| 11981 | throw byobReaderBrandCheckException("releaseLock"); |
| 11982 | } |
| 11983 | if (this._ownerReadableStream === void 0) { |
| 11984 | return; |
| 11985 | } |
| 11986 | ReadableStreamBYOBReaderRelease(this); |
| 11987 | } |
| 11988 | } |
| 11989 | Object.defineProperties(ReadableStreamBYOBReader2.prototype, { |
| 11990 | cancel: { enumerable: true }, |
nothing calls this directly
no test coverage detected