util: convert inspect.styles to prototype-less object
Use a prototype-less object for inspect.styles and inspect.colors to allow free modification of Object.protototype in the REPL.
Fixes: https://github.com/nodejs/node/issues/11614
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
- util