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: #20089
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
  • Loading branch information
addaleax authored and jasnell committed Apr 17, 2018
1 parent 1f01112 commit 47af0a0
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 @@ -182,9 +182,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 @@ -218,7 +218,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 47af0a0

Please sign in to comment.