MCPcopy Create free account
hub / github.com/nodejs/node / getWritableError

Function getWritableError

deps/undici/undici.js:17721–17723  ·  view source on GitHub ↗
(stream2)

Source from the content-addressed store, hash-verified

17719 }
17720 __name(noop, "noop");
17721 function getWritableError(stream2) {
17722 return stream2.errored ?? stream2.writableErrored ?? stream2._writableState?.errored;
17723 }
17724 __name(getWritableError, "getWritableError");
17725 function createPrematureCloseError() {
17726 const err = new Error("Premature close");

Callers 1

trackWritableLifecycleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected