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 8f15309.

PR-URL: #20017
Refs: #17907
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
addaleax authored and BridgeAR committed May 11, 2018
1 parent f145a53 commit 85373ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85373ae

Please sign in to comment.