Perfect your code
With built-in code review tools, GitHub makes it easy to raise the quality bar before you ship. Join the 40 million developers who've merged over 200 million pull requests.
Sign up for free See pricing for teams and enterprisesinspector: migrate process.binding to internalBinding #24931
Conversation
nodejs-github-bot
added
the
lib / src
label
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
For the test failures ( For the |
This comment has been minimized.
This comment has been minimized.
|
BTW, do we even need to wrap that in |
This comment has been minimized.
This comment has been minimized.
|
I implemented the part about |
BridgeAR
added
the
author ready
label
Dec 12, 2018
This comment has been minimized.
This comment has been minimized.
|
Landed in 0500237. |
danbev
closed this
Dec 13, 2018
BeniCheni
deleted the
BeniCheni:inspector-internal-binding
branch
Dec 13, 2018
MylesBorins
added
the
backport-requested-v11.x
label
Dec 25, 2018
This comment has been minimized.
This comment has been minimized.
|
This doesn't land cleanly on v11.x, would someone be willing to make a backport? |
BeniCheni commentedDec 10, 2018
•
edited
Refs #22160, this PR attempts to migrate
process.binding('inspector')tointernalBinding('inspector').Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes