FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

domains: emit uncaughtException when appropriate by misterdjules · Pull Request #3638 · nodejs/node · GitHub

/ node Public

domains: emit uncaughtException when appropriate - #3638

Closed
misterdjules wants to merge 2 commits into
nodejs:v0.12from
misterdjules:fix-issue-3607-v0-12
Closed

domains: emit uncaughtException when appropriate#3638
misterdjules wants to merge 2 commits into
nodejs:v0.12from
misterdjules:fix-issue-3607-v0-12

Conversation

Copy link
Copy Markdown

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/lts @nodejs/tsc @nodejs/collaborators

misterdjules added domain Issues and PRs related to the domain subsystem. v0.12 labels Nov 3, 2015
Comment thread test/simple/test-domain-errors.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Require common please

misterdjules force-pushed the fix-issue-3607-v0-12 branch 3 times, most recently from 5a8cc6b to 7dd903f Compare November 3, 2015 06:44

jasnell commented Nov 3, 2015

Copy link
Copy Markdown
Member

@misterdjules ... just a quick note: we'll want to land this in v0.12-staging first. Per the LTS WG discussion on monday, we're going to try use the -staging branches to help organize the LTS releases from v4.x, v0.12 and v0.10 going forward.

Copy link
Copy Markdown
Author

@jasnell Sounds good.

Copy link
Copy Markdown
Member

Julien Gilli added 2 commits November 4, 2015 12:49
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

Copy link
Copy Markdown
Author

@jbergstroem Thank you for running the tests on this. I think the correct link to the CI results is https://ci.nodejs.org/job/node-test-commit/1040/.

Anyway, I needed to run tests again because since then I updated this PR with a new commit. CI running here: https://ci.nodejs.org/job/node-test-pull-request/677/.

Copy link
Copy Markdown
Author

Closing in favor of #3885.

misterdjules deleted the fix-issue-3607-v0-12 branch July 24, 2017 17:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL