util: do not reduce to a single line if not appropriate using inspect · nodejs/node@2c7f17c · GitHub
Skip to content

Commit 2c7f17c

Browse files
BridgeARdanielleadams
authored andcommitted
util: do not reduce to a single line if not appropriate using inspect
This makes sure entries are not lined up on a single line if the content contains any new line. That would otherwise cause confusing output. Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de> PR-URL: #41083 Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 3185772 commit 2c7f17c

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 5 additions & 2 deletions

test/parallel/test-util-inspect.js

Lines changed: 18 additions & 0 deletions

0 commit comments

Comments
 (0)