Skip to content

Commit

Permalink
Revert "util: change %o depth default"
Browse files Browse the repository at this point in the history
This reverts commit 1a1fe53.

PR-URL: #24806
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
  • Loading branch information
BridgeAR committed Dec 5, 2018
1 parent e7fbdf5 commit 764d76f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ property take precedence over `--trace-deprecation` and
<!-- YAML
added: v0.5.3
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/REPLACEME
description: The `%o` specifier's `depth` has default depth of 4 again.
- version: v11.0.0
pr-url: https://github.com/nodejs/node/pull/17907
description: The `%o` specifier's `depth` option will now fall back to the
Expand Down
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ function formatWithOptions(inspectOptions, f) {
{
const opts = Object.assign({}, inspectOptions, {
showHidden: true,
showProxy: true
showProxy: true,
depth: 4
});
tempStr = inspect(arguments[a++], opts);
break;
Expand Down

0 comments on commit 764d76f

Please sign in to comment.