* Closes the controlled readable stream. Consumers will still be able to read any previously-enqueued chunks from * the stream, but once those are read, the stream will become closed.
()
| 13216 | * the stream, but once those are read, the stream will become closed. |
| 13217 | */ |
| 13218 | close() { |
| 13219 | if (!IsReadableStreamDefaultController(this)) { |
| 13220 | throw defaultControllerBrandCheckException$1("close"); |
| 13221 | } |
| 13222 | if (!ReadableStreamDefaultControllerCanCloseOrEnqueue(this)) { |
| 13223 | throw new TypeError("The stream is not in a state that permits close"); |
| 13224 | } |
| 13225 | ReadableStreamDefaultControllerClose(this); |
| 13226 | } |
| 13227 | enqueue(chunk = void 0) { |
| 13228 | if (!IsReadableStreamDefaultController(this)) { |
| 13229 | throw defaultControllerBrandCheckException$1("enqueue"); |
nothing calls this directly
no test coverage detected