-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
test: cover util.inspect on boxed primitive with colors #27897
test: cover util.inspect on boxed primitive with colors #27897
Conversation
This comment has been minimized.
This comment has been minimized.
0d5e08d
to
c9b4b43
Compare
@addaleax done |
Thanks everyone! Will land this as soon as 48 hours are up. |
/ping @BridgeAR |
Cool. It was just a ping, not a "don't land this until he reviews it". Pinging because I was surprised he hadn't reviewed it yet and figured he'd likely have an opinion. No problem from me with landing it. |
@Trott haha, no need to explain, I understood, just wanted to explicitly mention my thoughts. 😇 |
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.
This is almost done but it will not yet cover the mentioned line. There is a fast path that is taken to prevent to toLowerCase()
from being called if there are no extra properties on the object.
To cover it, add any regular property to the boxed primitive before passing it to util.inspect
.
@Trott thanks, my mailbox got a pile of mentions and I'll go through them later on today. I am just a bit busy that I did not get to it before. |
@pinguinjkeke could you please address @BridgeAR's comments above and then we could land this? |
@BridgeAR I'm trying to hit |
@pinguinjkeke you are right, I did not read the code line correctly! |
Landed in c31ac41 🎉 |
PR-URL: #27897 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #27897 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This PR adds a coverage for
util.inspect
's colored boxed primitive test-util-inspect.js L868Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes