* --unhandled-rejections=warn: * Emit 'unhandledRejection', then emit 'UnhandledPromiseRejectionWarning'. * @type {UnhandledRejectionsModeHandler}
(promise, promiseInfo)
| 301 | * @type {UnhandledRejectionsModeHandler} |
| 302 | */ |
| 303 | function alwaysWarnUnhandledRejectionsMode(promise, promiseInfo) { |
| 304 | emitUnhandledRejection(promise, promiseInfo); |
| 305 | emitUnhandledRejectionWarning(promiseInfo); |
| 306 | return true; |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * --unhandled-rejections=throw: |
nothing calls this directly
no test coverage detected