Skip to content

fix: node-addon-api exception handling - #47

Merged
Robo (deepak1556) merged 2 commits into
release/vscodefrom
robo/fix_exception_handling
Oct 3, 2024
Merged

fix: node-addon-api exception handling#47
Robo (deepak1556) merged 2 commits into
release/vscodefrom
robo/fix_exception_handling

Conversation

@deepak1556

Copy link
Copy Markdown

Properly defines exception handling story, see https://github.com/nodejs/node-addon-api/blob/main/doc/error_handling.md for context

@deepak1556 Robo (deepak1556) added this to the October 2024 milestone Oct 3, 2024
@deepak1556 Robo (deepak1556) self-assigned this Oct 3, 2024
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) October 3, 2024 15:52
@deepak1556
Robo (deepak1556) merged commit 61db6fc into release/vscode Oct 3, 2024
@deepak1556
Robo (deepak1556) deleted the robo/fix_exception_handling branch October 3, 2024 17:29
gms1 (gms1) added a commit to gms1/node-sqlite3 that referenced this pull request Mar 28, 2026
This fixes the contradictory configuration
pointed out here: microsoft#47
where compiler flags enabled C++ exceptions but NAPI_DISABLE_CPP_EXCEPTIONS=1 told node-addon-api to disable them. Now C++ exceptions are properly enabled throughout the stack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants