util: use minimal object inspection with %s specifier by BridgeAR · Pull Request #26927 · nodejs/node (original) (raw)
This improves util.format()
by returning more meaningful results
when using %s
as specifier and any object as value. Besides thatBigInt
will also be represented with an n
at the end to indicate
that it's of type BigInt
.
@Trott @vsemozhetbyt the documentation does not seem very intuitive
and I fail to find brief words to describe everything properly. It would
be great if you could have a look to suggest improvements.
Most format
or inspect
changes are treated as patch but this could
be considered semver-major even though I doubt that it would break anything. I would like to get the opinion of others on that and I'll trigger CITGM to see if anything pops up.
CITGM https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1777/
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes- tests and/or benchmarks are included
- documentation is changed or added
- commit message follows commit guidelines