Skip to content
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 #3640

Closed

Conversation

misterdjules
Copy link

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 #3607.

/cc @nodejs/tsc @nodejs/collaborators.

@misterdjules misterdjules added the domain Issues and PRs related to the domain subsystem. label Nov 3, 2015
@misterdjules misterdjules force-pushed the fix-issue-3607-master branch from 6d1f73c to 04b75ca Compare November 3, 2015 02:02
@misterdjules misterdjules force-pushed the fix-issue-3607-master branch from 04b75ca to f5ffc5a Compare November 3, 2015 06:40
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.
@misterdjules misterdjules force-pushed the fix-issue-3607-master branch from f5ffc5a to bb645c2 Compare November 3, 2015 06:42
@@ -0,0 +1,203 @@
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be test-domain-uncaught-exception.js? Seems more explicit.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, renamed in #3654.

@misterdjules
Copy link
Author

Closing in favor of #3654.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain Issues and PRs related to the domain subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants