-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
src: use internalBinding('config').hasInspector
in JS land
#25291
Conversation
What I liked about |
lib/internal/bootstrap/cache.js
Outdated
@@ -33,7 +33,7 @@ const cannotUseCache = [ | |||
|
|||
// Skip modules that cannot be required when they are not | |||
// built into the binary. | |||
if (process.config.variables.v8_enable_inspector !== 1) { | |||
if (hasInspector) { |
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.
I think this should be !hasInspector
@jdalton I personally would not mind if there is an alias for |
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`.
89178d2
to
b249b07
Compare
Rebased and fixed test: https://ci.nodejs.org/job/node-test-pull-request/19910/ |
SmartOS ran out of memory. Resume: https://ci.nodejs.org/job/node-test-pull-request/19912/ |
Landed in b22c86e |
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`. PR-URL: #25291 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Opened #25343 about |
Should this be backported to |
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`. PR-URL: nodejs#25291 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`. PR-URL: #25291 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`. PR-URL: nodejs#25291 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Instead of `process.config.variables.v8_enable_inspector` which depends on the variable name in gyp files, or detecting `internalBinding('inspector').Connection`. PR-URL: nodejs#25291 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
Instead of
process.config.variables.v8_enable_inspector
which depends on the variable name in gyp files, or detecting
internalBinding('inspector').Connection
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes