Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
n-api: add missing exception checking
Add checks for a pending exception in napi_make_callback after the callback has been invoked. If there is a pending exception then we need to avoid checking the result as that will not be able to complete properly. Add additional checks to the unit test for napi_make_callback to catch this case. PR-URL: #19362 Fixes: nodejs/node-addon-api#235 Reviewed-By: James M Snell <firstname.lastname@example.org> Reviewed-By: Colin Ihrig <email@example.com> Reviewed-By: Anna Henningsen <firstname.lastname@example.org>
- Loading branch information
Showing with 22 additions and 5 deletions.