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

Method reject

lib/diagnostics_channel.js:549–557  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

547 const continuationWindow = this.#continuationWindow;
548
549 function reject(err) {
550 context.error = err;
551 error.publish(context);
552 // Use continuation window for asyncStart/asyncEnd
553 // eslint-disable-next-line no-unused-vars
554 using scope = continuationWindow.withScope(context);
555 // TODO: Is there a way to have asyncEnd _after_ the continuation?
556 return PromiseReject(err);
557 }
558
559 function resolve(result) {
560 context.result = result;

Callers 15

errorHandlerFunction · 0.80
readNextFunction · 0.80
cancelFunction · 0.80
onWriteCompleteFunction · 0.80
doWriteFunction · 0.80
cancelFunction · 0.80

Calls 2

publishMethod · 0.45
withScopeMethod · 0.45

Tested by 1

testFunction · 0.64