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:
parent
f145a53a78
commit
85373aeb4c
@ -183,9 +183,6 @@ property take precedence over `--trace-deprecation` and
|
|||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v0.5.3
|
added: v0.5.3
|
||||||
changes:
|
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
|
- version: v8.4.0
|
||||||
pr-url: https://github.com/nodejs/node/pull/14558
|
pr-url: https://github.com/nodejs/node/pull/14558
|
||||||
description: The `%o` and `%O` specifiers are supported now.
|
description: The `%o` and `%O` specifiers are supported now.
|
||||||
|
@ -217,7 +217,8 @@ function formatWithOptions(inspectOptions, f) {
|
|||||||
{
|
{
|
||||||
const opts = Object.assign({}, inspectOptions, {
|
const opts = Object.assign({}, inspectOptions, {
|
||||||
showHidden: true,
|
showHidden: true,
|
||||||
showProxy: true
|
showProxy: true,
|
||||||
|
depth: 4
|
||||||
});
|
});
|
||||||
tempStr = inspect(arguments[a++], opts);
|
tempStr = inspect(arguments[a++], opts);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user