Commit 5ed8a1c
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 e3a0a9c commit 5ed8a1cCopy full SHA for 5ed8a1c
File tree
Expand file treeCollapse file tree
2 files changed
+23
-2
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
2 files changed
+23
-2
lines changedOpen diff view settings
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+5-2Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1931 | 1931 | |
1932 | 1932 | |
1933 | 1933 | |
1934 | | - |
1935 | | - |
| 1934 | + |
| 1935 | + |
| 1936 | + |
| 1937 | + |
| 1938 | + |
1936 | 1939 | |
1937 | 1940 | |
1938 | 1941 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2631 | 2631 | |
2632 | 2632 | |
2633 | 2633 | |
| 2634 | + |
| 2635 | + |
| 2636 | + |
| 2637 | + |
| 2638 | + |
| 2639 | + |
| 2640 | + |
| 2641 | + |
| 2642 | + |
| 2643 | + |
| 2644 | + |
| 2645 | + |
| 2646 | + |
| 2647 | + |
| 2648 | + |
| 2649 | + |
| 2650 | + |
| 2651 | + |
2634 | 2652 | |
2635 | 2653 | |
2636 | 2654 | |
|
0 commit comments