-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
util: improve empty typed array inspection #22284
Conversation
They should be aligned with all other empty objects. Therefore the whitespace is removed and they got a fast path for that.
I really don't want this to be semver-major but the output change may require it. Thoughts @nodejs/tsc? |
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 without semver-major. the docs explicitly say not to use the output of util.inspect programmatically.
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 in this case it’s okay to land it as a non-breaking change if CITGM is okay with it.
(I’d generally keep it a case-by-case decision, though.)
I just pushed another commit to prevent this path from being taken in case |
They should be aligned with all other empty objects. Therefore the whitespace is removed and they got a fast path for that. PR-URL: nodejs#22284 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
CITGM runs came out fine. |
Landed in db6a246 |
Should this be backported to |
Landed easily after #21869 |
They should be aligned with all other empty objects. Therefore the whitespace is removed and they got a fast path for that. PR-URL: #22284 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
They should be aligned with all other empty objects. Therefore the whitespace is removed and they got a fast path for that. PR-URL: #22284 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes