Uh oh!
There was an error while loading. Please reload this page.
[v14.x-backport] node-api: rtn pending excep on napi_new_instance - #39516
[v14.x-backport] node-api: rtn pending excep on napi_new_instance#39516legendecas wants to merge 1 commit into
Conversation
nodejs-github-bot
commented
Jul 25, 2021
addaleax
left a comment
There was a problem hiding this comment.
So … this looks good, but:
When I reviewed the original PR, the reason I approved that this was a bugfix that aligned this call site with other call sites.
However, this prompted me to take another look at the source, it seems that CHECK_MAYBE_EMPTY most often uses napi_generic_failure – which seems pretty wrong? An empty maybe by definition indicates a pending exception.
@addaleax previously we consider this returning status change as a possible ABI breaking change. However, the original PR does resolve a real problem, which we considered as a bug of node core. I believe it is time to re-evaluate if such a change is breaking anymore. If it is not been categorized as an ABI breaking change, we should apply the change on all other similar call sites. /cc @nodejs/node-api |
addaleax
commented
Jul 26, 2021
@legendecas Yeah, I think this is either an all-or-nothing situation.
But the same goes for the other call sites…? |
targos
commented
Aug 8, 2021
Can you please rebase? |
targos
commented
Aug 29, 2021
ping @legendecas |
f89cf6a to
b55b2f9Comparelegendecas
commented
Aug 30, 2021
@targos updated! :) |
b3f51ee to
327838dCompareWhen there are any JavaScript exceptions pending, `napi_pending_exception` should be returned. PR-URL: nodejs#38798 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com>
b55b2f9 to
e999999Comparetargos
commented
Sep 3, 2021
Landed in a74032a |
When there are any JavaScript exceptions pending,
napi_pending_exceptionshould be returned.PR-URL: #38798
Reviewed-By: Anna Henningsen anna@addaleax.net
Reviewed-By: Michael Dawson midawson@redhat.com