util: add inspect.defaultOptions
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
util
Description of change
Adds the util.inspect.config()
method to allow customization of inspect options in cases where util.inspect()
is implicitly called by core like in console
or util.format
.
Fixes: #7566 (closed)