Skip to content

Commit 764d76f

Browse files
committed
Revert "util: change %o depth default"
This reverts commit 1a1fe53. PR-URL: #24806 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent e7fbdf5 commit 764d76f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/api/util.md

+3
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ property take precedence over `--trace-deprecation` and
183183
<!-- YAML
184184
added: v0.5.3
185185
changes:
186+
- version: REPLACEME
187+
pr-url: https://github.com/nodejs/node/pull/REPLACEME
188+
description: The `%o` specifier's `depth` has default depth of 4 again.
186189
- version: v11.0.0
187190
pr-url: https://github.com/nodejs/node/pull/17907
188191
description: The `%o` specifier's `depth` option will now fall back to the

lib/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ function formatWithOptions(inspectOptions, f) {
117117
{
118118
const opts = Object.assign({}, inspectOptions, {
119119
showHidden: true,
120-
showProxy: true
120+
showProxy: true,
121+
depth: 4
121122
});
122123
tempStr = inspect(arguments[a++], opts);
123124
break;

0 commit comments

Comments
 (0)