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

Function alwaysWarnUnhandledRejectionsMode

lib/internal/process/promises.js:303–307  ·  view source on GitHub ↗

* --unhandled-rejections=warn: * Emit 'unhandledRejection', then emit 'UnhandledPromiseRejectionWarning'. * @type {UnhandledRejectionsModeHandler}

(promise, promiseInfo)

Source from the content-addressed store, hash-verified

301 * @type {UnhandledRejectionsModeHandler}
302 */
303function alwaysWarnUnhandledRejectionsMode(promise, promiseInfo) {
304 emitUnhandledRejection(promise, promiseInfo);
305 emitUnhandledRejectionWarning(promiseInfo);
306 return true;
307}
308
309/**
310 * --unhandled-rejections=throw:

Callers

nothing calls this directly

Calls 2

emitUnhandledRejectionFunction · 0.85

Tested by

no test coverage detected