Skip to content

scalar function exception handling#271

Merged
jraymakers merged 1 commit intomainfrom
jray/scalar-func-except-handling
Aug 2, 2025
Merged

scalar function exception handling#271
jraymakers merged 1 commit intomainfrom
jray/scalar-func-except-handling

Conversation

@jraymakers
Copy link
Copy Markdown
Collaborator

When running a scalar function, wrap the call to the JS function in an exception handler, and transform any error into an error in the scalar function.

The change to use node_addon_api_except_all instead of node_addon_api_except isn't strictly needed, but seems like a good idea in general to avoid crashing. (It should cause C++ exceptions to be converted to JS exceptions in more cases.)

@jraymakers jraymakers merged commit 22b1f41 into main Aug 2, 2025
5 checks passed
@jraymakers jraymakers deleted the jray/scalar-func-except-handling branch August 2, 2025 16:33
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.

1 participant