Commit 29bc735
console: fix console.table() display edge case
If the properties are not specified in `console.table()`, then we should
make a best effort to determine them rather than put all values into a
"Values" column.
PR-URL: #20323
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent be34388 commit 29bc735Copy full SHA for 29bc735
File tree
Expand file treeCollapse file tree
2 files changed
+21
-14
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+21
-14
lines changedOpen diff view settings
Collapse file
+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
363 | 363 | |
364 | 364 | |
365 | 365 | |
366 | | - |
367 | | - |
368 | | - |
| 366 | + |
369 | 367 | |
370 | 368 | |
371 | 369 | |
|
Collapse file
βtest/parallel/test-console-table.jsβ
Copy file name to clipboardExpand all lines: test/parallel/test-console-table.js+20-11Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
41 | 41 | |
42 | 42 | |
43 | 43 | |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
51 | 51 | |
52 | 52 | |
53 | 53 | |
| ||
182 | 182 | |
183 | 183 | |
184 | 184 | |
185 | | - |
186 | | - |
187 | | - |
188 | | - |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
189 | 189 | |
190 | 190 | |
191 | 191 | |
| ||
194 | 194 | |
195 | 195 | |
196 | 196 | |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
0 commit comments