You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the stalled PR #25715, @Fishrock123 was working to introduce a new API... from the original description:
Adds a public way to access node::FatalException from javascript, as process.exitWithException().
If an error stack is available on the value, this method of exiting does not add additional context, unlike regular re-throwing, yet also uses the regular error printing logic. This behavior is particularly desirable when doing 'fatal exits' from the unhandledRejection event.
While the PR had plenty of support to move forward, there was an edge case around the uncaughtException event handler that would need to be worked through in order for it to move forward.
The original PR stalled out and has been closed, but given the support the idea had, I wanted to make sure to open a Feature Request issue in case someone else wanted to pick up the work and move it forward.
I assume the difference is that the proposed API also prints the line that threw? You probably don't always want to quit so I'd say that's better handled through a new API, one that gives you that line.
Activity
bnoordhuis commentedon Jun 26, 2020
Is that different from this?
I assume the difference is that the proposed API also prints the line that threw? You probably don't always want to quit so I'd say that's better handled through a new API, one that gives you that line.
bnoordhuis commentedon Jul 6, 2020
@Fishrock123 @jasnell Can you comment on the above?
jasnell commentedon Jul 6, 2020
I have no particular preference on this. I opened issue so that the request didn't get lost since the original work stalled out.
jasnell commentedon Jan 12, 2021
Closing due to lack of progress
Fishrock123 commentedon Jan 12, 2021
The idea was essentially to expose the built-in error printing logic.
I also no longer have any investment in this, so, as we were.