Skip to content

util: convert inspect.styles to prototype-less object

Rodrigo Muino Tomonari requested to merge github/fork/nem035/issue-11614 into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)
  • util

Merge request reports

Loading