You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4663453
Browse filesBrowse the repository at this point in the historyBrowse files
src: fix usage of napi_extended_error_info in Error::New()
All fields of the `napi_extended_error_info` structure gets reset in
subsequent Node-API function calls on the same `env`. This includes a
call to `napi_is_exception_pending()`. So here it is necessary to make
a copy of the information as the `error_code` field is used later on.
Signed-off-by: Darshan Sen <darshan.sen@postman.com>
PR-URL: #1092Fixes: #1089
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
0 commit comments