From 82477e1b0f8d35e726823b8f3661d810dc35bca0 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 17 Sep 2019 18:43:58 +0200 Subject: [PATCH] console,util: inspect strings as in < Node.js v12.x This reverts https://github.com/nodejs/node/pull/23162. The gained consistency did not outweight the benefit of inspecting the arguments. Therefore it is best to revert to the former behavior. Refs: https://github.com/nodejs/node/issues/29539 Refs: https://github.com/nodejs/node/pull/23162 --- doc/api/util.md | 45 ++++++++++++++++++------------- lib/internal/util/inspect.js | 6 ++++- test/parallel/test-util-format.js | 18 +++++++++---- 3 files changed, 45 insertions(+), 24 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index 475df2e227929f..ba6cc8ee3827b3 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -185,6 +185,10 @@ property take precedence over `--trace-deprecation` and