forked from nodejs/node-addon-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: fix usage of
napi_extended_error_info
in Error::New()
We must create a copy of the last error info before using it if subsequent Node-API function calls are involved as those may mutate the fields of the original structure. Fixes: nodejs#1089 Signed-off-by: Darshan Sen <darshan.sen@postman.com>
- Loading branch information
Showing
4 changed files
with
57 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters