Commit 31bb476
console: allow per-stream
We (correctly) allow different streams to be specified for `stdout`
and `stderr`, so we should also allow different inspect options for
these streams.
PR-URL: #60082
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>inspectOptions option1 parent 08b9eb8 commit 31bb476Copy full SHA for 31bb476
File tree
Expand file treeCollapse file tree
3 files changed
+46
-8
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/console
- test/parallel
Expand file treeCollapse file tree
3 files changed
+46
-8
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
102 | 102 | |
103 | 103 | |
104 | 104 | |
| 105 | + |
| 106 | + |
| 107 | + |
105 | 108 | |
106 | 109 | |
107 | 110 | |
| ||
131 | 134 | |
132 | 135 | |
133 | 136 | |
134 | | - |
135 | | - |
| 137 | + |
| 138 | + |
| 139 | + |
136 | 140 | |
137 | 141 | |
138 | 142 | |
|
Collapse file
lib/internal/console/constructor.js
Copy file name to clipboardExpand all lines: lib/internal/console/constructor.js+17-6Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
| 16 | + |
15 | 17 | |
16 | 18 | |
17 | 19 | |
| ||
139 | 141 | |
140 | 142 | |
141 | 143 | |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
146 | 156 | |
147 | | - |
| 157 | + |
148 | 158 | |
149 | 159 | |
150 | 160 | |
| ||
316 | 326 | |
317 | 327 | |
318 | 328 | |
319 | | - |
| 329 | + |
| 330 | + |
320 | 331 | |
321 | 332 | |
322 | 333 | |
|
Collapse file
test/parallel/test-console-tty-colors-per-stream.js
Copy file name to clipboard+23Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
0 commit comments