MCPcopy Index your code
hub / github.com/nodejs/node / writableStreamDealWithRejection

Function writableStreamDealWithRejection

lib/internal/webstreams/writablestream.js:922–933  ·  view source on GitHub ↗
(stream, error)

Source from the content-addressed store, hash-verified

920}
921
922function writableStreamDealWithRejection(stream, error) {
923 const {
924 state,
925 } = stream[kState];
926 if (state === 'writable') {
927 writableStreamStartErroring(stream, error);
928 return;
929 }
930
931 assert(state === 'erroring');
932 writableStreamFinishErroring(stream);
933}
934
935function writableStreamCloseQueuedOrInFlight(stream) {
936 if (stream[kState].closeRequest.promise === undefined &&

Calls 3

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…