Commit 0a07201
util: fix formatting of objects with SIMD enabled
When SIMD is enabled, `util.format` couldn’t display objects
(with at least 1 key) because the formatter function got
overridden.
PR-URL: #7864
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>1 parent a4f0b13 commit 0a07201Copy full SHA for 0a07201
File tree
Expand file treeCollapse file tree
3 files changed
+17
-4
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
3 files changed
+17
-4
lines changedOpen diff view settings
Collapse file
+6-4Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
487 | 487 | |
488 | 488 | |
489 | 489 | |
490 | | - |
491 | | - |
492 | | - |
493 | | - |
494 | 490 | |
495 | 491 | |
496 | 492 | |
497 | 493 | |
498 | 494 | |
499 | 495 | |
| 496 | + |
500 | 497 | |
501 | 498 | |
502 | 499 | |
| ||
507 | 504 | |
508 | 505 | |
509 | 506 | |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
510 | 512 | |
511 | 513 | |
512 | 514 | |
|
Collapse file
test/parallel/test-util-format.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-format.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
| 10 | + |
10 | 11 | |
| 12 | + |
11 | 13 | |
12 | 14 | |
13 | 15 | |
|
Collapse file
test/parallel/test-util-inspect-simd.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect-simd.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
59 | 59 | |
60 | 60 | |
61 | 61 | |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
0 commit comments