Skip to content
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

[v10.x] bootstrapper: move internalBinding to NativeModule #23661

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Member

Backport of #23025

One thing worth noting is that there were a large number of merge conflicts where v10.x used process.binding() and master used internalBinding(). I’ve decided to patch internalBinding() to fall back to process.binding() on v10.x, since we’re not going to backport the conversions.

The advantage of that is that the v10.x-master diff is smaller, and from now on, commits from master can always be backported when they introduce new internalBinding() calls, even for bindings that haven’t been moved yet.

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]>
@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. v10.x labels Oct 14, 2018
@addaleax
Copy link
Member Author

@richardlau
Copy link
Member

from now on, commits from master can always be backported when they introduce new internalBinding() calls, even for bindings that haven’t been moved yet.

FYI we've already run into this with a commit from master being backported to v10.x-staging: #23633

@targos
Copy link
Member

targos commented Oct 17, 2018

@addaleax
Copy link
Member Author

@addaleax
Copy link
Member Author

Landed in 5468509

@addaleax addaleax closed this Oct 20, 2018
addaleax pushed a commit that referenced this pull request Oct 20, 2018
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]>
@addaleax addaleax deleted the backport-23025 branch October 20, 2018 05:45
MylesBorins pushed a commit that referenced this pull request Oct 30, 2018
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]>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
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]>
MylesBorins pushed a commit that referenced this pull request Nov 29, 2018
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants