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

Function WritableStreamDefaultControllerErrorIfNeeded

out/cli.cjs:12861–12865  ·  view source on GitHub ↗
(controller, error)

Source from the content-addressed store, hash-verified

12859 }
12860 }
12861 function WritableStreamDefaultControllerErrorIfNeeded(controller, error) {
12862 if (controller._controlledWritableStream._state === "writable") {
12863 WritableStreamDefaultControllerError(controller, error);
12864 }
12865 }
12866 function WritableStreamDefaultControllerProcessClose(controller) {
12867 const stream4 = controller._controlledWritableStream;
12868 WritableStreamMarkCloseRequestInFlight(stream4);

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…