node/test
Julien Gilli 88e8d93e14 domains: fix handling of uncaught exceptions
Fix node exiting due to an exception being thrown rather than emitting
an `'uncaughtException'` event on the process object when:
1. no error handler is set on the domain within which an error is thrown
2. an `'uncaughtException'` event listener is set on the process

Also fix an issue where the process would not abort in the proper
function call if an error is thrown within a domain with no error
handler and `--abort-on-uncaught-exception` is used.

Fixes #3607 and #3653.

PR: #3884
PR-URL: https://github.com/nodejs/node/pull/3884
Reviewed-By: James M Snell <jasnell@gmail.com>
2015-12-23 08:38:33 -08:00
..
abort src: honor --abort_on_uncaught_exception flag 2015-09-20 10:30:52 -07:00
addons test: fix path to module for repl test on Windows 2015-12-23 08:38:33 -08:00
cctest
debugger test: load common.js in all tests 2015-10-07 20:39:17 -07:00
disabled test: replace deprecated util.debug() calls 2015-09-30 22:19:52 +10:00
fixtures test: stronger crypto in test fixtures 2015-12-23 08:38:33 -08:00
gc src: replace usage of v8::Handle with v8::Local 2015-09-06 21:39:05 +10:00
internet test: skip test if FreeBSD jail will break it 2015-12-23 08:38:33 -08:00
message test: remove flaky status from eval_messages test 2015-10-29 08:38:41 -07:00
parallel domains: fix handling of uncaught exceptions 2015-12-23 08:38:33 -08:00
pummel test: skip/replace weak crypto tests in FIPS mode 2015-12-23 08:38:33 -08:00
sequential test: run pipeline flood test in parallel 2015-12-23 08:38:33 -08:00
testpy test: fix default value for additional param 2015-09-15 13:53:37 -04:00
timers
.eslintrc test: make common.js mandatory via linting rule 2015-10-07 20:39:17 -07:00
common.js domains: fix handling of uncaught exceptions 2015-12-23 08:38:33 -08:00