Revert "util: change %o depth default"

This reverts commit 8f153092d86b0605af8a2ef294dc310fefa83e30.

PR-URL: https://github.com/nodejs/node/pull/20017
Refs: https://github.com/nodejs/node/pull/17907
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Anna Henningsen 2018-04-13 21:34:40 +02:00 committed by Ruben Bridgewater
parent f145a53a78
commit 85373aeb4c
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
2 changed files with 2 additions and 4 deletions

View File

@ -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.

View File

@ -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;