src: fix --abort-on-uncaught-exception
authorJeremy Whitlock <jwhitlock@apache.org>
Mon, 5 Oct 2015 20:08:53 +0000 (13:08 -0700)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 03:39:15 +0000 (20:39 -0700)
commit546e8333baec20da35708238bf1a497ae00122c5
treebcb9f294b14ad840b1ef6b32ee8b6d526f0f4f33
parent8b50e95f069b372e85358d0ea401bfb979415189
src: fix --abort-on-uncaught-exception

Revert 0af4c9ea7434e4f505dbe071357e4bc3b4ab2a8a, parts of
921f2de6cf999b5a4663615e37967b4269d755fe and port
https://github.com/nodejs/node-v0.x-archive/pull/25835 from v0.12 to
master so that node aborts at the right time when an error is thrown
and --abort-on-uncaught-exception is used.

Fixes #3035.

PR: #3036
PR-URL: https://github.com/nodejs/node/pull/3036
Reviewed-By: Ben Noordhuis <ben@strongloop.com>
lib/domain.js
src/async-wrap.cc
src/env-inl.h
src/env.h
src/node.cc
src/node.js
test/parallel/test-domain-top-level-error-handler-throw.js [new file with mode: 0644]
test/parallel/test-domain-with-abort-on-uncaught-exception.js [new file with mode: 0644]