* @param {any} [reason] * @returns {Promise }
(reason = undefined)
| 250 | * @returns {Promise<void>} |
| 251 | */ |
| 252 | abort(reason = undefined) { |
| 253 | if (!isWritableStream(this)) |
| 254 | return PromiseReject(new ERR_INVALID_THIS('WritableStream')); |
| 255 | if (isWritableStreamLocked(this)) { |
| 256 | return PromiseReject( |
| 257 | new ERR_INVALID_STATE.TypeError('WritableStream is locked')); |
| 258 | } |
| 259 | return writableStreamAbort(this, reason); |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * @returns {Promise<void>} |
nothing calls this directly
no test coverage detected