* @param {any} [reason] * @returns {Promise }
(reason = undefined)
| 428 | * @returns {Promise<void>} |
| 429 | */ |
| 430 | abort(reason = undefined) { |
| 431 | if (!isWritableStreamDefaultWriter(this)) |
| 432 | return PromiseReject(new ERR_INVALID_THIS('WritableStreamDefaultWriter')); |
| 433 | if (this[kState].stream === undefined) { |
| 434 | return PromiseReject( |
| 435 | new ERR_INVALID_STATE.TypeError( |
| 436 | 'Writer is not bound to a WritableStream')); |
| 437 | } |
| 438 | return writableStreamDefaultWriterAbort(this, reason); |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * @returns {Promise<void>} |
nothing calls this directly
no test coverage detected