Uh oh!
There was an error while loading. Please reload this page.
uv: move process.binding('uv') to internalBinding - #22163
Conversation
jasnell
commented
Aug 6, 2018
maclover7
commented
Aug 7, 2018
CITGM ( |
maclover7
left a comment
There was a problem hiding this comment.
CITGM results look okay, LGTM if CI passes
d49a404 to
eb95a6aCompareeb95a6a to
300895bComparejasnell
commented
Aug 9, 2018
New CI after rebase: https://ci.nodejs.org/job/node-test-pull-request/16307/ |
jasnell
commented
Aug 9, 2018
Redo on the custom-suites job: https://ci.nodejs.org/job/node-test-commit-custom-suites/586/ |
PR-URL: #22163 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
jasnell
commented
Aug 9, 2018
Landed in c7962dc |
maclover7
commented
Aug 11, 2018
Hmm, looks like the CITGM results actually show a regression in the test suite for |
maclover7
commented
Aug 11, 2018
Relevant PR from @addaleax to the |
addaleax
commented
Aug 11, 2018
@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. |
jasnell
commented
Aug 11, 2018
Sigh. We can add back the process.binding export for now alongside the internalBinding. |
jasnell
commented
Aug 11, 2018
Will get a PR opened |
addaleax
commented
Aug 11, 2018
@jasnell Maybe we can wrap constforward=['uv', ...];constoriginalProcessBinding=process.binding;process.binding=function(id){if(forward.includes(id)){process.emitWarning(...);returninternalBinding(id);}returnoriginalProcessBinding(id);};That might transitioning a bit smoother in general… |
jasnell
commented
Aug 11, 2018
That's a better approach than what I was thinking @addaleax :-) Will go that route |
Selectively deprecate `process.binding()` and fallthrough Refs: nodejs#22163
jasnell
commented
Aug 11, 2018
See #22269 |
Selectively fallthrough `process.binding()` to `internalBinding()` Refs: #22163 PR-URL: #22269 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Move
process.binding('uv')tointernalBinding('uv')/cc #22160
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes