* Aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be * immediately moved to an errored state, with any queued-up writes discarded. This will also execute any abort * mechanism of the underlying sink. * * T
(reason = void 0)
| 12154 | * the stream) if the stream is currently locked. |
| 12155 | */ |
| 12156 | abort(reason = void 0) { |
| 12157 | if (!IsWritableStream(this)) { |
| 12158 | return promiseRejectedWith(streamBrandCheckException$2("abort")); |
| 12159 | } |
| 12160 | if (IsWritableStreamLocked(this)) { |
| 12161 | return promiseRejectedWith(new TypeError("Cannot abort a stream that already has a writer")); |
| 12162 | } |
| 12163 | return WritableStreamAbort(this, reason); |
| 12164 | } |
| 12165 | /** |
| 12166 | * Closes the stream. The underlying sink will finish processing any previously-written chunks, before invoking its |
| 12167 | * close behavior. During this time any further attempts to write will fail (without erroring the stream). |
nothing calls this directly
no test coverage detected