(stream4, reason)
| 12321 | WritableStreamFinishErroring(stream4); |
| 12322 | } |
| 12323 | function WritableStreamStartErroring(stream4, reason) { |
| 12324 | const controller = stream4._writableStreamController; |
| 12325 | stream4._state = "erroring"; |
| 12326 | stream4._storedError = reason; |
| 12327 | const writer = stream4._writer; |
| 12328 | if (writer !== void 0) { |
| 12329 | WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, reason); |
| 12330 | } |
| 12331 | if (!WritableStreamHasOperationMarkedInFlight(stream4) && controller._started) { |
| 12332 | WritableStreamFinishErroring(stream4); |
| 12333 | } |
| 12334 | } |
| 12335 | function WritableStreamFinishErroring(stream4) { |
| 12336 | stream4._state = "errored"; |
| 12337 | stream4._writableStreamController[ErrorSteps](); |
no test coverage detected
searching dependent graphs…