Skip to content

node-api: Add API to check safety of calling JS

This PR seeks to resolve an race condition issue while shutting down node with neon bindings. Due to the race, it is possible to call into JavaScript during shutdown while it is not allowed. The added API cal exposes the can_call_into_js so that we are able to check and catch the condition where we are no longer allowed to call into JavaScript.

https://github.com/neon-bindings/neon/pull/913

Merge request reports

Loading