(reason)
| 638 | } |
| 639 | |
| 640 | fail(reason) { |
| 641 | if (this.#isClosedOrAborted()) return; |
| 642 | this.#aborted = true; |
| 643 | this.#closed = PromiseResolve(this.#totalBytes); |
| 644 | const error = reason ?? new ERR_INVALID_STATE.TypeError('Failed'); |
| 645 | this.#rejectPendingWrites(error); |
| 646 | this.#rejectPendingDrains(error); |
| 647 | this.#broadcast[kAbort](error); |
| 648 | } |
| 649 | |
| 650 | [SymbolAsyncDispose]() { |
| 651 | this.fail(); |
no test coverage detected