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

Function unhandledRejection

lib/internal/process/promises.js:189–198  ·  view source on GitHub ↗

* @param {Promise} promise * @param {Error} reason

(promise, reason)

Source from the content-addressed store, hash-verified

187 * @param {Error} reason
188 */
189function unhandledRejection(promise, reason) {
190 pendingUnhandledRejections.set(promise, {
191 reason,
192 uid: ++lastPromiseId,
193 warned: false,
194 domain: process.domain,
195 contextFrame: AsyncContextFrame.current(),
196 });
197 setHasRejectionToWarn(true);
198}
199
200/**
201 * @param {Promise} promise

Callers 1

promiseRejectHandlerFunction · 0.85

Calls 3

setHasRejectionToWarnFunction · 0.85
setMethod · 0.45
currentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…