mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
1c23b6f2be
Emit the deprecation warning in the `kDefaultUnhandledRejections` case to reduce the number of branches on unhandled rejection mode - there is now only one switch case on it. Also rename `emitWarning()` to `emitUnhandledRejectionWarning()` to avoid ambiguity with `process.emitWarning()` PR-URL: https://github.com/nodejs/node/pull/28258 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
31 lines
950 B
Plaintext
31 lines
950 B
Plaintext
(node:*) UnhandledPromiseRejectionWarning: Error: This was rejected
|
|
at * (*test*message*unhandled_promise_trace_warnings.js:*)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
(node:*) Error: This was rejected
|
|
at * (*test*message*unhandled_promise_trace_warnings.js:*)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
(node:*) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
|
|
at *
|
|
at *
|
|
at *
|
|
(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
|
|
at handledRejection (internal/process/promises.js:*)
|
|
at promiseRejectHandler (internal/process/promises.js:*)
|
|
at Promise.then *
|
|
at Promise.catch *
|
|
at Immediate.<anonymous> (*test*message*unhandled_promise_trace_warnings.js:*)
|
|
at *
|