MCPcopy
hub / github.com/di-sukharev/opencommit / WritableStreamDealWithRejection

Function WritableStreamDealWithRejection

out/cli.cjs:12315–12322  ·  view source on GitHub ↗
(stream4, error)

Source from the content-addressed store, hash-verified

12313 return promise;
12314 }
12315 function WritableStreamDealWithRejection(stream4, error) {
12316 const state2 = stream4._state;
12317 if (state2 === "writable") {
12318 WritableStreamStartErroring(stream4, error);
12319 return;
12320 }
12321 WritableStreamFinishErroring(stream4);
12322 }
12323 function WritableStreamStartErroring(stream4, reason) {
12324 const controller = stream4._writableStreamController;
12325 stream4._state = "erroring";

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…