-
-
Notifications
You must be signed in to change notification settings - Fork 487
fix: missing node_api_nogc_env definition #1585
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1585 +/- ##
=======================================
Coverage 64.42% 64.42%
=======================================
Files 3 3
Lines 2010 2010
Branches 699 699
=======================================
Hits 1295 1295
Misses 147 147
Partials 568 568 ☔ View full report in Codecov by Sentry. |
napi.h
Outdated
| public: | ||
| BasicEnv(node_api_nogc_env env); | ||
| BasicEnv(node_addon_api_basic_env env); | ||
| #ifdef NODE_API_EXPERIMENTAL_HAS_POST_FINALIZER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the node-addon-api meeting on 4 Oct, we discussed that it should be possible just to have a operator to node_addon_api_basic_env and node_addon_api_basic_finalize, as the compiler will allow conversion from BasicEnv -> node_addon_api_basic_env -> node_api_nogc_env or napi_env depending on options allowed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, ptal again, thanks
mhdawson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
KevinEady
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes: #1584
Add GitHub Actions for
node-api-headerscompatibility test, covering old Node.js versions.node-api-headersstrips experimental apis so only test with stable NAPI_VERSION.As there was no feature detection defs for
node_api_basic_finalizeornode_api_basic_env, useNODE_API_EXPERIMENTAL_HAS_POST_FINALIZERfor feature detection since it was introduced about the time wherenode_api_basic_env/node_api_nogc_envwas introduced.