From 8f153092d86b0605af8a2ef294dc310fefa83e30 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Wed, 3 Jan 2018 16:25:07 +0100 Subject: [PATCH] util: change %o depth default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Matteo Collina Reviewed-By: Michaƫl Zasso --- doc/api/util.md | 14 ++++++++------ lib/util.js | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index ae4cec72e11c7d..864a866a7311b5 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -187,6 +187,9 @@ property take precedence over `--trace-deprecation` and