(reason)
| 276 | return IsReadableStreamLocked(stream); |
| 277 | } |
| 278 | cancel(reason) { |
| 279 | const stream = ReadableStreamBrand.get(this); |
| 280 | if (IsReadableStreamLocked(stream)) |
| 281 | return Promise.reject(new TypeError("stream locked")); |
| 282 | return ReadableStreamCancel(stream, reason); |
| 283 | } |
| 284 | getReader(options) { |
| 285 | const stream = ReadableStreamBrand.get(this); |
| 286 | if (!options || !("mode" in options) || (options.mode === undefined)) |
no test coverage detected