src: handle TryCatch with empty message · nodejs/node@5eb0765 · GitHub
Skip to content

Commit 5eb0765

Browse files
bnoordhuisMylesBorins
authored andcommitted
src: handle TryCatch with empty message
This bug needs a test case with a high goldilocks factor to trigger but the synopsis is that `v8::TryCatch::Message()` returns an empty handle when the TryCatch is declared at a time when an exception is already pending. We now recompute the message inside `node::ReportException()` and all is well again. PR-URL: #20708 Fixes: #8854 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent a4cbe30 commit 5eb0765

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

src/node.cc

Lines changed: 3 additions & 1 deletion
Lines changed: 57 additions & 0 deletions

0 commit comments

Comments
 (0)