Commit 5ce85a7
util: wrap error in brackets without stack
This aligns the visualization of an error with no stack traces set
to zero just as it is done in case the error has no stack trace.
PR-URL: #20802
Refs: #20253
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 8a17a25 commit 5ce85a7Copy full SHA for 5ce85a7
File tree
Expand file treeCollapse file tree
2 files changed
+25
-9
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+25
-9
lines changedOpen diff view settings
Collapse file
+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
595 | 595 | |
596 | 596 | |
597 | 597 | |
| 598 | + |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
598 | 603 | |
599 | | - |
600 | | - |
| 604 | + |
601 | 605 | |
602 | 606 | |
603 | 607 | |
| ||
749 | 753 | |
750 | 754 | |
751 | 755 | |
752 | | - |
| 756 | + |
753 | 757 | |
754 | 758 | |
755 | 759 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+18-6Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
496 | 496 | |
497 | 497 | |
498 | 498 | |
499 | | - |
500 | | - |
501 | | - |
502 | | - |
503 | | - |
504 | | - |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
505 | 505 | |
506 | 506 | |
507 | 507 | |
| ||
515 | 515 | |
516 | 516 | |
517 | 517 | |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
518 | 530 | |
519 | 531 | |
520 | 532 | |
|
0 commit comments