-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
Experimental node_api_nogc_env
is not stripped
#51
Comments
Root problem: the current experimental stripping can only support
|
We discussed in the 11 Oct Node-API meeting a possible solution of modifying the Node.js header files such that it would be easier for the tool to correctly remove experimental features. Thinking about it some more, I am not a big fan of this approach. I don't think we should "dumb down" the header files just because the tool isn't smart enough. I am looking into making the tool more robust and handling |
Just a idea: do we really need to strip experimental APIs? If the experimental APIs were not stripped, it could be tested in nodejs/node-addon-api#1585 as well. |
What I remember about the decision to strip experimental APIs is that we would like to avoid developers use APIs that could be removed and then breaks their build. |
Ref:
node-api-headers/include/js_native_api_types.h
Lines 46 to 53 in 1294543
All other
NAPI_EXPERIMENTAL
apis were stripped, butnode_api_nogc_env
andnode_api_nogc_finalize
were not.If
NAPI_EXPERIMENTAL
is defined,node_api_post_finalizer
is missing fornode_api_nogc_finalize
callbacks.The text was updated successfully, but these errors were encountered: