-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
src: allow fatal exceptions to be enhanced #28562
Conversation
Alternatively we can just use a normal |
i'd say instead of having a concept of enhance we should just check for CanContinue, and always get a better trace if possible. |
5aa189d
to
1f21d4f
Compare
Added a test, and took |
CI: https://ci.nodejs.org/job/node-test-pull-request/24318/ EDIT(cjihrig): CI was green. |
This commit allows fatal exceptions to be enhanced so that exceptions thrown from an unhandledException handler have the stack attached properly. PR-URL: nodejs#28562 Fixes: nodejs#28550 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
The issue should be fixed in the next Node release, see nodejs/node#28562. Also, log a warning when Node.js v12.6.0 is used and uncaught exception reporting is enabled.
This commit allows fatal exceptions to be enhanced so that exceptions thrown from an unhandledException handler have the stack attached properly. PR-URL: #28562 Fixes: #28550 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit allows fatal exceptions to be enhanced so that exceptions thrown from an
'unhandledException'
handler have the stack attached properly.I still need to add a test, but first I want to make sure the approach is acceptable. If it's not, another approach could be passing
kEnhance
/kDontEnhance
to theTryCatchScope
constructor.Fixes: #28550
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes