-
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
inspector: migrate process.binding to internalBinding #24931
Conversation
In places of process.binding('inspector'), migrate code to adapt internalBinding. Refs: #22160
Hi reviewers, Would like some mentoring on these observations. Couldn't change these inline code w. return `process.binding('inspector')...` const script = `
...
if (!process.binding('inspector').isEnabled()) return; const script = `
...
const inspector = process.binding('inspector'); Another observation is when seemingly inside a child process, I would also run into failed test if using if (process.argv[2] === 'child') {
...
const { registerAsyncHook } = process.binding('inspector'); P.S.: I've experimented w. |
|
For the test failures ( For the |
BTW, do we even need to wrap that in |
I implemented the part about |
Landed in 0500237. |
This doesn't land cleanly on v11.x, would someone be willing to make a backport? |
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
In places of process.binding('inspector'), migrate code to adapt internalBinding. PR-URL: nodejs#24931 Refs: nodejs#22160 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Backport-PR-URL: nodejs#25446
Refs #22160, this PR attempts to migrate
process.binding('inspector')
tointernalBinding('inspector')
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes