| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
🤦♂️ at least it so new nobody's used it yet
Sorry, something went wrong.
|
Any reason not to fast track this? |
Sorry, something went wrong.
|
Heh, I didn't exactly find it. #9659 (comment) |
Sorry, something went wrong.
There was a problem hiding this comment.
maybe _inspectorEnabled is better?
Sorry, something went wrong.
|
So @mutantcornholio the 🏆 goes to you. |
Sorry, something went wrong.
|
Can we add a test for this? |
Sorry, something went wrong.
I'll do a new PR first thing tomorrow. But IMHO lack of testing should not block this. |
Sorry, something went wrong.
|
@cjihrig there is a typo on the commit message and the title of the PR. |
Sorry, something went wrong.
|
@mcollina I think that was the fix of this PR ;-) |
Sorry, something went wrong.
|
oooh, that was not clear. |
Sorry, something went wrong.
|
Updated to _inspectorEnabled as @refack suggested. CI: https://ci.nodejs.org/job/node-test-pull-request/8481/ |
Sorry, something went wrong.
|
I say land after 24 hours (in 10 hours 02:00 UTC) unless anyone objects |
Sorry, something went wrong.
|
I thought it might be just for our internal use, to communicate from C++ init to later js, but we have no references to this property anywhere other than its definition. So, must be for external users? If so, isn't this semver-major? |
Sorry, something went wrong.
|
Well, first internal use will be here (after this PR gets merged): #9659 (comment) |
Sorry, something went wrong.
It's brand new (16689e3), and AFAIK never used. Was a bit of future proofing. |
Sorry, something went wrong.
|
Alternatively, if the property is unused, maybe it should be deleted, see #13228 (comment) and conversation after. |
Sorry, something went wrong.
IMHO it's an interesting property to have Re: #9659 and especially #13228 where inspector could be enabled without a trace in process.argv |
Sorry, something went wrong.
|
Note that #13228 allows checking whether the inspector port is open or not with a documented API (instead of an _ prefixed and undocumented property on process), and is accurate whether the port was opened using --inspect[-brk], SIGUSR1, process._debugBegin(), inspector.open(), and whether it was closed later, then reopened, etc. |
Sorry, something went wrong.
|
Sorry, something went wrong.
|
I'm fine with removing it here. That still leaves the semver question though. |
Sorry, something went wrong.
It's an _XX property, {enumerable: false}, undocumented, and has been in existence for < 10 days. IMHO it clearly falls within the definition of "internal". I call semver-patch. |
Sorry, something went wrong.
|
I think the policy would be to deprecate process._inspectorEnbale (note spelling) in 9.x, and delete it in 10.x. But @refack makes a compelling argument in #13460 (comment), and the CTC can do the right thing by agreement even if its not the official policy, though I think they have to formally agree that disregarding stability policy is the right thing to do here. @cjihrig would understand best the options here. |
Sorry, something went wrong.
AIUI the formal policy is that underscore properties are not subject to semver (although the CTC makes exceptions for things that people use). |
Sorry, something went wrong.
|
Given that this is (a) new and (b) and obvious mistake, it's worth fixing as a semver-patch. |
Sorry, something went wrong.
There was a problem hiding this comment.
This should not need to wait the 48 hours to land
Sorry, something went wrong.
|
Adding my voice to "If this requires CTC-approval to be treated as semver-patch, please record my approval". |
Sorry, something went wrong.
|
Just to clarify, are we talking about landing this as is, or removing the property? |
Sorry, something went wrong.
|
@cjihrig I meant either renaming or removing. I'm fine with treating either as semver-patch in this specific instance. |
Sorry, something went wrong.
|
CI to remove the property: https://ci.nodejs.org/job/node-test-pull-request/8497/ |
Sorry, something went wrong.
This commit removes process._inspectorEnbale which was spelled incorrectly, and is being properly implemented in a separate PR. Refs: nodejs#12949 PR-URL: nodejs#13460 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
🎉 |
Sorry, something went wrong.
This commit removes process._inspectorEnbale which was spelled incorrectly, and is being properly implemented in a separate PR. Refs: #12949 PR-URL: #13460 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
This seems like a typo. This commit changes the property to process._inspectorEnable.
Checklist
Affected core subsystem(s)
src