[v14.x-backport] node-api: rtn pending excep on napi_new_instance
When there are any JavaScript exceptions pending,
napi_pending_exception
should be returned.
PR-URL: https://github.com/nodejs/node/pull/38798 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Michael Dawson midawson@redhat.com