diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-04-13 21:34:40 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-11 17:46:56 +0200 |
commit | 85373aeb4c79dd16bf22549559cf09df17d78e5a (patch) | |
tree | e0e9d71ce938053eb5483d97e0e5118edd85a8c5 | |
parent | f145a53a78a0d9cb6a82cefa54646a43ef23cfa3 (diff) | |
download | android-node-v8-85373aeb4c79dd16bf22549559cf09df17d78e5a.tar.gz android-node-v8-85373aeb4c79dd16bf22549559cf09df17d78e5a.tar.bz2 android-node-v8-85373aeb4c79dd16bf22549559cf09df17d78e5a.zip |
Revert "util: change %o depth default"
This reverts commit 8f153092d86b0605af8a2ef294dc310fefa83e30.
PR-URL: https://github.com/nodejs/node/pull/20017
Refs: https://github.com/nodejs/node/pull/17907
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
-rw-r--r-- | doc/api/util.md | 3 | ||||
-rw-r--r-- | lib/util.js | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/doc/api/util.md b/doc/api/util.md index 66f1fc25cd..1f2b2887da 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -183,9 +183,6 @@ property take precedence over `--trace-deprecation` and <!-- YAML added: v0.5.3 changes: - - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/17907 - description: The `%o` specifiers `depth` option is now set to `Infinity`. - version: v8.4.0 pr-url: https://github.com/nodejs/node/pull/14558 description: The `%o` and `%O` specifiers are supported now. diff --git a/lib/util.js b/lib/util.js index a47f6305f4..55a37c1b4b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -217,7 +217,8 @@ function formatWithOptions(inspectOptions, f) { { const opts = Object.assign({}, inspectOptions, { showHidden: true, - showProxy: true + showProxy: true, + depth: 4 }); tempStr = inspect(arguments[a++], opts); break; |