Commit a9d332a
util: inspect: do not crash on an Error stack that contains a Symbol
See #56570
PR-URL: #56573
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 649cf0c commit a9d332aCopy full SHA for a9d332a
File tree
Expand file treeCollapse file tree
2 files changed
+26
-8
lines changedOpen diff view settings
Filter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
2 files changed
+26
-8
lines changedOpen diff view settings
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+10-4Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1287 | 1287 | |
1288 | 1288 | |
1289 | 1289 | |
1290 | | - |
1291 | | - |
| 1290 | + |
| 1291 | + |
| 1292 | + |
| 1293 | + |
| 1294 | + |
| 1295 | + |
| 1296 | + |
| 1297 | + |
1292 | 1298 | |
1293 | 1299 | |
1294 | 1300 | |
| ||
1303 | 1309 | |
1304 | 1310 | |
1305 | 1311 | |
1306 | | - |
| 1312 | + |
1307 | 1313 | |
1308 | 1314 | |
1309 | 1315 | |
| ||
1426 | 1432 | |
1427 | 1433 | |
1428 | 1434 | |
1429 | | - |
| 1435 | + |
1430 | 1436 | |
1431 | 1437 | |
1432 | 1438 | |
|
Collapse file
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+16-4Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
777 | 777 | |
778 | 778 | |
779 | 779 | |
780 | | - |
| 780 | + |
781 | 781 | |
782 | 782 | |
783 | 783 | |
| 784 | + |
784 | 785 | |
785 | | - |
| 786 | + |
786 | 787 | |
787 | | - |
| 788 | + |
788 | 789 | |
789 | | - |
| 790 | + |
| 791 | + |
790 | 792 | |
791 | 793 | |
792 | 794 | |
| ||
3416 | 3418 | |
3417 | 3419 | |
3418 | 3420 | |
| 3421 | + |
| 3422 | + |
| 3423 | + |
| 3424 | + |
| 3425 | + |
| 3426 | + |
| 3427 | + |
| 3428 | + |
| 3429 | + |
| 3430 | + |
0 commit comments