We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The core api function takes a node_api_basic_env, see https://nodejs.org/api/n-api.html#napi_adjust_external_memory
node_api_basic_env
While via this library it needs a full Env: https://github.com/nodejs/node-addon-api/blob/ae2c23e7460d91ab5b1844d04372f42801bfa48e/napi-inl.h#L6702C34-L6702C54
Env
Should it be downgraded to a BasicEnv so it can be called in the new synchronous finalisers?
BasicEnv
The text was updated successfully, but these errors were encountered:
I guess the reason is that it is allowed to throw a node error if the call fails.
One could convert that to a normal c++ exception which cannot be propagated to node... don't know.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The core api function takes a
node_api_basic_env
, see https://nodejs.org/api/n-api.html#napi_adjust_external_memoryWhile via this library it needs a full
Env
: https://github.com/nodejs/node-addon-api/blob/ae2c23e7460d91ab5b1844d04372f42801bfa48e/napi-inl.h#L6702C34-L6702C54Should it be downgraded to a
BasicEnv
so it can be called in the new synchronous finalisers?The text was updated successfully, but these errors were encountered: