* If the reader is active, behaves the same as ReadableStream.cancel | stream.cancel(reason).
(reason = void 0)
| 11909 | * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}. |
| 11910 | */ |
| 11911 | cancel(reason = void 0) { |
| 11912 | if (!IsReadableStreamBYOBReader(this)) { |
| 11913 | return promiseRejectedWith(byobReaderBrandCheckException("cancel")); |
| 11914 | } |
| 11915 | if (this._ownerReadableStream === void 0) { |
| 11916 | return promiseRejectedWith(readerLockException("cancel")); |
| 11917 | } |
| 11918 | return ReadableStreamReaderGenericCancel(this, reason); |
| 11919 | } |
| 11920 | read(view, rawOptions = {}) { |
| 11921 | if (!IsReadableStreamBYOBReader(this)) { |
| 11922 | return promiseRejectedWith(byobReaderBrandCheckException("read")); |
nothing calls this directly
no test coverage detected