Stack trace gets lost in Node.js 12.6.0 when rethrowing from uncaught exception handler #28550
Labels
confirmed-bug
Issues with confirmed bugs.
errors
Issues and PRs related to JavaScript errors originated in Node.js core.
Up to version 12.5.0, when rethrowing the error from an
uncaughtException
handler, the original stack trace would be preserved. In version 12.6.0, this is no longer the case. Instead, a stack trace with only one line is printed, showing the callsite where the error has been rethrown.rethrow.js
:Running the above in 12.5.0 and 12.6.0 shows the difference:
Commits 0fd6524 and 5b92eb4 might be related to this change in behaviour.
The text was updated successfully, but these errors were encountered: