-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
uv: move process.binding('uv') to internalBinding #22163
Conversation
CITGM ( |
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.
CITGM results look okay, LGTM if CI passes
d49a404
to
eb95a6a
Compare
eb95a6a
to
300895b
Compare
New CI after rebase: https://ci.nodejs.org/job/node-test-pull-request/16307/ |
Redo on the custom-suites job: https://ci.nodejs.org/job/node-test-commit-custom-suites/586/ |
PR-URL: #22163 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]>
Landed in c7962dc |
Hmm, looks like the CITGM results actually show a regression in the test suite for
|
Relevant PR from @addaleax to the |
@maclover7 That PR should have prevented exactly this – I think this might just be something that requires dependency updates to nyc (and/or yargs)? Also, I think this is a case where a runtime deprecation should really have been considered before landing the PR. |
Sigh. We can add back the process.binding export for now alongside the internalBinding. |
Will get a PR opened |
@jasnell Maybe we can wrap const forward = ['uv', ...];
const originalProcessBinding = process.binding;
process.binding = function(id) {
if (forward.includes(id)) {
process.emitWarning(...);
return internalBinding(id);
}
return originalProcessBinding(id);
}; That might transitioning a bit smoother in general… |
That's a better approach than what I was thinking @addaleax :-) Will go that route |
Selectively deprecate `process.binding()` and fallthrough Refs: nodejs#22163
See #22269 |
Selectively fallthrough `process.binding()` to `internalBinding()` Refs: #22163 PR-URL: #22269 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: John-David Dalton <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Move
process.binding('uv')
tointernalBinding('uv')
/cc #22160
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes