diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-02-26 15:46:50 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-04 21:20:43 +0000 |
commit | 68d508a9e03923a5ae6a53a1adff66c4e3f97263 (patch) | |
tree | 5994954cfd307defe8bd7805aea06f17ebf9b444 /test/message/events_unhandled_error_common_trace.out | |
parent | f2d93795bfe61a3260bf743d2247b56b83fc6f70 (diff) | |
download | android-node-v8-68d508a9e03923a5ae6a53a1adff66c4e3f97263.tar.gz android-node-v8-68d508a9e03923a5ae6a53a1adff66c4e3f97263.tar.bz2 android-node-v8-68d508a9e03923a5ae6a53a1adff66c4e3f97263.zip |
events: show throw stack trace for uncaught exception
Show the stack trace for the `eventemitter.emit('error')` call
in the case of an uncaught exception.
Previously, there would be no clue in Node’s output about where
the actual `throw` comes from.
PR-URL: https://github.com/nodejs/node/pull/19003
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/message/events_unhandled_error_common_trace.out')
-rw-r--r-- | test/message/events_unhandled_error_common_trace.out | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/message/events_unhandled_error_common_trace.out b/test/message/events_unhandled_error_common_trace.out new file mode 100644 index 0000000000..d39a95cb77 --- /dev/null +++ b/test/message/events_unhandled_error_common_trace.out @@ -0,0 +1,22 @@ +events.js:* + throw er; // Unhandled 'error' event + ^ + +Error: foo:bar + at bar (*events_unhandled_error_common_trace.js:*:*) + at foo (*events_unhandled_error_common_trace.js:*:*) + at Object.<anonymous> (*events_unhandled_error_common_trace.js:*:*) + at Module._compile (module.js:*:*) + at Object.Module._extensions..js (module.js:*:*) + at Module.load (module.js:*:*) + at tryModuleLoad (module.js:*:*) + at Function.Module._load (module.js:*:*) + at Function.Module.runMain (module.js:*:*) + at startup (bootstrap_node.js:*:*) +Emitted 'error' event at: + at quux (*events_unhandled_error_common_trace.js:*:*) + at Object.<anonymous> (*events_unhandled_error_common_trace.js:*:*) + at Module._compile (module.js:*:*) + [... lines matching original stack trace ...] + at startup (bootstrap_node.js:*:*) + at bootstrap_node.js:*:* |