-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
bootstrapper: move internalBinding to NativeModule wrapper #23025
Conversation
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.
Thanks for moving this back!
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.
thank you! :-)
you just crossed item #3 off my standing todo list 👍
@@ -294,7 +294,7 @@ | |||
const requireFn = this.id.startsWith('internal/deps/') ? | |||
NativeModule.requireForDeps : | |||
NativeModule.require; | |||
fn(this.exports, requireFn, this, process); | |||
fn(this.exports, requireFn, this, process, internalBinding); |
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.
IIRC, it should be safe to remove internalBinding
from loaderExports
by now?
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.
bootstrap/node.js uses it, so we can't
I would like to ask to have some context. There is no description in the OP or the commit message. |
ecb3257
to
8aec3be
Compare
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.
Thank you!
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.
❤️
8aec3be
to
cbbd309
Compare
cbbd309
to
3db0de9
Compare
Re-run of failing node-test-commit-arm-fanned and node-test-commit-linux. |
@devsnek Would you be able to rebase this? Sorry about the delay, CI has not been very happy the last week but I'll try to re-run it and land this as soon as possible. |
internalBinding is used so often that it should just automatically be available for usage in internals. Refs: nodejs@2a9eb31
d9391fe
to
062f1de
Compare
Landed in e7f710c. |
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
This should be fine to include in 10.x 🤷 |
Feel free to backport. I felt like it would be less work to fix a few trivial conflicts from time to time than backporting this big change. |
It doesn’t cherry-pick cleanly (suprise!). @devsnek Do you want to backport or should I? |
If you're willing that would be great, I don't have access to a checkout of node until tomorrow anyway. |
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: nodejs#23025 Refs: nodejs@2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: #23661 Backport-Reviewed-By: Gus Caplan <[email protected]> Backport-Reviewed-By: Richard Lau <[email protected]> Backport-Reviewed-By: Michaël Zasso <[email protected]> Backport-Reviewed-By: Joyee Cheung <[email protected]> Backport-Reviewed-By: Ruben Bridgewater <[email protected]>
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: #23661 Backport-Reviewed-By: Gus Caplan <[email protected]> Backport-Reviewed-By: Richard Lau <[email protected]> Backport-Reviewed-By: Michaël Zasso <[email protected]> Backport-Reviewed-By: Joyee Cheung <[email protected]> Backport-Reviewed-By: Ruben Bridgewater <[email protected]>
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: #23661 Backport-Reviewed-By: Gus Caplan <[email protected]> Backport-Reviewed-By: Richard Lau <[email protected]> Backport-Reviewed-By: Michaël Zasso <[email protected]> Backport-Reviewed-By: Joyee Cheung <[email protected]> Backport-Reviewed-By: Ruben Bridgewater <[email protected]>
internalBinding is used so often that it should just automatically be available for usage in internals. PR-URL: #23025 Refs: 2a9eb31 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Backport-PR-URL: #23661 Backport-Reviewed-By: Gus Caplan <[email protected]> Backport-Reviewed-By: Richard Lau <[email protected]> Backport-Reviewed-By: Michaël Zasso <[email protected]> Backport-Reviewed-By: Joyee Cheung <[email protected]> Backport-Reviewed-By: Ruben Bridgewater <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes