The default CallJS
method of ThreadSafeFunction
ignores user exceptions
#41377
Labels
node-api
Issues and PRs related to the Node-API.
Version
All
Platform
All
Subsystem
node-api
What steps will reproduce the bug?
Throw a JS exception from an async callback called through
ThreadSafeFunction
as described here: nodejs/node-addon-api#669How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
Node exits cleanly reporting an unhandled exception: nodejs/node-addon-api#1119
What do you see instead?
Node continues as if nothing happened
Additional information
The exceptions are ignored here:
node/src/node_api.cc
Line 401 in 55c5120
The text was updated successfully, but these errors were encountered: