-
Notifications
You must be signed in to change notification settings - Fork 30k
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
spawn_sync: move process.binding('spawn_sync') to internalBinding #22260
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.
LGTM with good CITGM run
1286410
to
e86328f
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.
Holding removals until migration is ironed out
@antsmartian ... when you get a moment, can you rebase this on master then apply the following patch which will be necessary for this to proceed: Author: James M Snell <[email protected]>
Date: Tue Aug 14 19:36:25 2018 -0700
[Squash] add `process.binding('spawn_sync')` to fallthrough whitelist
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index 08daeb1915..ffae6e4cd9 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -327,7 +327,7 @@
// that are whitelisted for access via process.binding()... this is used
// to provide a transition path for modules that are being moved over to
// internalBinding.
- const internalBindingWhitelist = new SafeSet(['uv']);
+ const internalBindingWhitelist = new SafeSet(['uv', 'spawn_sync']);
process.binding = function binding(name) {
return internalBindingWhitelist.has(name) ?
internalBinding(name) :
diff --git a/test/parallel/test-process-binding-internalbinding-whitelist.js b/test/parallel/test-process-binding-internalbinding-whitelist.js
index ece967a0b7..cc0119917d 100644
--- a/test/parallel/test-process-binding-internalbinding-whitelist.js
+++ b/test/parallel/test-process-binding-internalbinding-whitelist.js
@@ -7,3 +7,4 @@ const assert = require('assert');
// Assert that whitelisted internalBinding modules are accessible via
// process.binding().
assert(process.binding('uv'));
+assert(process.binding('spawn_sync')); |
@jasnell Now it should be good to go, thanks! |
b8ab324
to
221afde
Compare
@jasnell Have rebased, can we get this merge, before I get an another conflict :) Thanks for your help. |
Ok seeing a lint issue, let me fix that. |
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.
LGTM after lint fix.
221afde
to
b0addf2
Compare
Yet again conflicts, let me rebase it tonight.. sorry folks.. |
Landed in 9c9c01f |
PR-URL: #22260 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: John-David Dalton <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@targos Thanks for rebasing, didn't find time to do it. Thanks a ton. |
Migration from process.binding to internalBinding (see : #22160)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes