summaryrefslogtreecommitdiff
path: root/lib/repl.js
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-11-12 15:52:43 -0600
committerRich Trott <rtrott@gmail.com>2018-11-14 19:44:39 -0800
commit7082c61e27142c1c4c55ab925baa8a162637b066 (patch)
treefbb3dc8b972b4676534f35e0d106982a311840c8 /lib/repl.js
parented15b336dcc804106e0ea0338f52d47dd2b7b0b2 (diff)
downloadandroid-node-v8-7082c61e27142c1c4c55ab925baa8a162637b066.tar.gz
android-node-v8-7082c61e27142c1c4c55ab925baa8a162637b066.tar.bz2
android-node-v8-7082c61e27142c1c4c55ab925baa8a162637b066.zip
Revert "util: change util.inspect depth default"
This reverts commit ac7450a09a4c167cd43c14d7c88721d22f077529. This fully reverts the changes to util.inspect depth. It has caused breakage in logging to existing apps, and even something as simple as `console.log(require)` will cause >1m freezes. I've heard nothing but negative feedback (seriously not a single person has expressed anything positive about this change) and personally i find this change extremely annoying. PR-URL: https://github.com/nodejs/node/pull/24326 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Diffstat (limited to 'lib/repl.js')
-rw-r--r--lib/repl.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/repl.js b/lib/repl.js
index 3391a94396..cd341978cb 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -130,9 +130,8 @@ function hasOwnProperty(obj, prop) {
// and it can be overridden by custom print functions, such as `probe` or
// `eyes.js`.
const writer = exports.writer = (obj) => util.inspect(obj, writer.options);
-writer.options = Object.assign({},
- util.inspect.defaultOptions,
- { showProxy: true, depth: 2 });
+writer.options =
+ Object.assign({}, util.inspect.defaultOptions, { showProxy: true });
exports._builtinLibs = builtinLibs;