Skip to content

Commit 85373ae

Browse files
addaleaxBridgeAR
authored andcommittedMay 11, 2018
Revert "util: change %o depth default"
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]>
1 parent f145a53 commit 85373ae

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎doc/api/util.md

-3
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ 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/17907
188-
description: The `%o` specifiers `depth` option is now set to `Infinity`.
189186
- version: v8.4.0
190187
pr-url: https://github.com/nodejs/node/pull/14558
191188
description: The `%o` and `%O` specifiers are supported now.

‎lib/util.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ function formatWithOptions(inspectOptions, f) {
217217
{
218218
const opts = Object.assign({}, inspectOptions, {
219219
showHidden: true,
220-
showProxy: true
220+
showProxy: true,
221+
depth: 4
221222
});
222223
tempStr = inspect(arguments[a++], opts);
223224
break;

0 commit comments

Comments
 (0)
Please sign in to comment.