util: convert inspect.styles and inspect.colors to prototype-less obj… · nodejs/node@aab0d20 · GitHub
Skip to content

Commit aab0d20

Browse files
Nemanja Stojanovicjasnell
authored andcommitted
util: convert inspect.styles and inspect.colors to prototype-less objects
Use a prototype-less object for inspect.styles and inspect.colors to allow modification of Object.prototype in the REPL. Fixes: #11614 PR-URL: #11624 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
1 parent fd17e8b commit aab0d20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/util.js

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)