MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / WritableStreamStartErroring

Function WritableStreamStartErroring

out/cli.cjs:12323–12334  ·  view source on GitHub ↗
(stream4, reason)

Source from the content-addressed store, hash-verified

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]();

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…