diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-03 16:25:07 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-16 15:34:04 +0100 |
commit | 8f153092d86b0605af8a2ef294dc310fefa83e30 (patch) | |
tree | 8c812963958881de57e2878cb38a151ae9e25bd8 /lib/util.js | |
parent | b994b8eff6018433a56bb10dbc473cefa0dd9370 (diff) | |
download | android-node-v8-8f153092d86b0605af8a2ef294dc310fefa83e30.tar.gz android-node-v8-8f153092d86b0605af8a2ef294dc310fefa83e30.tar.bz2 android-node-v8-8f153092d86b0605af8a2ef294dc310fefa83e30.zip |
util: change %o depth default
Since the default for depth is changed to `Infinity` it is logical
to change the %o default to the same as well.
Using %o with `util.format` will now always print the whole object.
PR-URL: https://github.com/nodejs/node/pull/17907
Refs: https://github.com/nodejs/node/issues/12693
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.js b/lib/util.js index 9d1739f786..541577db08 100644 --- a/lib/util.js +++ b/lib/util.js @@ -195,7 +195,7 @@ function format(f) { break; case 111: // 'o' tempStr = inspect(arguments[a++], - { showHidden: true, depth: 4, showProxy: true }); + { showHidden: true, showProxy: true }); break; case 105: // 'i' tempStr = `${parseInt(arguments[a++])}`; |