-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
domains: emit uncaughtException when appropriate #3637
Conversation
/cc @nodejs/lts @nodejs/collaborators @nodejs/tsc. |
* given test tests one of these potentially eroneous behaviors that are | ||
* currently accepted as correct. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Require common please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
64e8643
to
e974362
Compare
69a0ae3
to
e077d2c
Compare
Pushed a second commit in this PR that fixes #3653. It changes the API of |
e077d2c
to
a72719d
Compare
Fix node exiting due to an exception being thrown rather than emitting an `'uncaughtException'` event on the process object when no error handler is set on the domain within which an error is thrown and an `'uncaughtException'` event listener is set on the process. Fixes nodejs#3607.
Make the process abort if an error is thrown within a domain with no error handler and `--abort-on-uncaught-exception` is used. If the domain within which the error is thrown has no error handler, but a domain further down the domains stack has one, the process will not abort. Fixes nodejs#3653.
a72719d
to
e7e1dfd
Compare
Closing in favor of #3887. |
Fix node exiting due to an exception being thrown rather than emitting
an
'uncaughtException'
event on the process object when no errorhandler is set on the domain within which an error is thrown and an
'uncaughtException'
event listener is set on the process.Fixes #3607.