n-api: implement wrapping using private properties#18311
n-api: implement wrapping using private properties#18311gabrielschulhof wants to merge 1 commit intonodejs:masterfrom
Conversation
src/node_api.cc
Outdated
There was a problem hiding this comment.
env.h has some convenience wrappers for accessing private methods (look for PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES), can we use those?
src/node_api.cc
Outdated
There was a problem hiding this comment.
We generally use snake_case for local variables and parameters
2465f08 to
b6d330e
Compare
|
@addaleax I have addressed your review comments. |
src/node_api.cc
Outdated
src/node_api.cc
Outdated
There was a problem hiding this comment.
Since you have a reference to the v8::Context, it would be more efficient to call Environment::GetCurrent(context) once and then call env->napi_env() directly.
Applies to a few more spots. I won't point them out individually.
src/node_api.cc
Outdated
There was a problem hiding this comment.
Consider using an enum instead of a bool. More self-descriptive at the call site.
src/node_api.cc
Outdated
src/node_api.cc
Outdated
There was a problem hiding this comment.
Can you line up the arguments?
b6d330e to
92488fe
Compare
|
I re-ran the node-test-commit-arm portion, and it passed: https://ci.nodejs.org/job/node-test-commit-arm/13589/ |
|
Landed in 1286923. |
|
Should this be backported to |
|
@MylesBorins this is part of #19265. |
PR-URL: nodejs#18311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Fixes: nodejs#14367
PR-URL: nodejs#18311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Fixes: nodejs#14367
PR-URL: nodejs#18311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Fixes: nodejs#14367
Fixes: #14367
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
n-api