Uh oh!
There was an error while loading. Please reload this page.
test: cover util.inspect on boxed primitive with colors - #27897
test: cover util.inspect on boxed primitive with colors#27897pinguinjkeke wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
0d5e08d to
c9b4b43Comparepinguinjkeke
commented
May 26, 2019
@addaleax done |
nodejs-github-bot
commented
May 26, 2019
nodejs-github-bot
commented
May 27, 2019
ryzokuken
commented
May 27, 2019
Thanks everyone! Will land this as soon as 48 hours are up. |
Trott
commented
May 28, 2019
/ping @BridgeAR |
ryzokuken
commented
May 28, 2019
Trott
commented
May 28, 2019
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. |
ryzokuken
commented
May 29, 2019
@Trott haha, no need to explain, I understood, just wanted to explicitly mention my thoughts. 😇 |
There was a problem hiding this comment.
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.
BridgeAR
commented
May 29, 2019
@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. |
ryzokuken
commented
May 29, 2019
@pinguinjkeke could you please address @BridgeAR's comments above and then we could land this? |
pinguinjkeke
commented
May 29, 2019
@BridgeAR I'm trying to hit |
BridgeAR
commented
May 29, 2019
@pinguinjkeke you are right, I did not read the code line correctly! |
ryzokuken
commented
May 29, 2019
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