You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give better stack traces for `PromiseRejectionHandledWarning`
and `UnhandledPromiseRejectionWarning`s.
For `PromiseRejectionHandledWarning`, when it is likely that there
is an `Error` object generated, it is created early to provide a
proper stack trace.
For `UnhandledPromiseRejectionWarning`, the stack trace of the
underlying error object is used, if possible.
Fixes: #9523
PR-URL: #9525
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
at * (*test*message*unhandled_promise_trace_warnings.js:*)
3
+
at *
4
+
at *
5
+
at *
6
+
at *
7
+
at *
8
+
at *
9
+
at *
10
+
at *
11
+
at *
12
+
(node:*) 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.
13
+
at *
14
+
at *
15
+
at *
16
+
at *
17
+
at *
18
+
at *
19
+
at *
20
+
at *
21
+
at *
22
+
(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
23
+
at getAsynchronousRejectionWarningObject (internal/process/promises.js:*)
24
+
at rejectionHandled (internal/process/promises.js:*)
25
+
at *
26
+
at Promise.then (native)
27
+
at Promise.catch (native)
28
+
at Immediate.setImmediate (*test*message*unhandled_promise_trace_warnings.js:*)
0 commit comments