Commit 6151544
vm: don't print out arrow message for custom error
In `AppendExceptionLine()`, which is used both by the `vm`
module and the uncaught exception handler, don’t print anything
to stderr when called from the `vm` module, even if the
thrown object is not a native error instance.
Fixes: #7397
PR-URL: #7398
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>1 parent 8d18aed commit 6151544Copy full SHA for 6151544
File tree
Expand file treeCollapse file tree
5 files changed
+45
-15
lines changedOpen diff view settings
Filter options
- src
- test/message
Expand file treeCollapse file tree
5 files changed
+45
-15
lines changedOpen diff view settings
Collapse file
+20-13Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1514 | 1514 | |
1515 | 1515 | |
1516 | 1516 | |
1517 | | - |
| 1517 | + |
| 1518 | + |
1518 | 1519 | |
1519 | 1520 | |
1520 | 1521 | |
| ||
1601 | 1602 | |
1602 | 1603 | |
1603 | 1604 | |
1604 | | - |
1605 | | - |
1606 | | - |
1607 | | - |
1608 | | - |
| 1605 | + |
| 1606 | + |
| 1607 | + |
| 1608 | + |
| 1609 | + |
| 1610 | + |
| 1611 | + |
| 1612 | + |
| 1613 | + |
| 1614 | + |
| 1615 | + |
| 1616 | + |
| 1617 | + |
1609 | 1618 | |
1610 | 1619 | |
1611 | 1620 | |
1612 | | - |
1613 | | - |
1614 | | - |
1615 | | - |
1616 | | - |
1617 | | - |
| 1621 | + |
| 1622 | + |
| 1623 | + |
| 1624 | + |
1618 | 1625 | |
1619 | 1626 | |
1620 | 1627 | |
| ||
1623 | 1630 | |
1624 | 1631 | |
1625 | 1632 | |
1626 | | - |
| 1633 | + |
1627 | 1634 | |
1628 | 1635 | |
1629 | 1636 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
633 | 633 | |
634 | 634 | |
635 | 635 | |
636 | | - |
| 636 | + |
637 | 637 | |
638 | 638 | |
639 | 639 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
142 | 142 | |
143 | 143 | |
144 | 144 | |
| 145 | + |
145 | 146 | |
146 | 147 | |
147 | | - |
| 148 | + |
| 149 | + |
148 | 150 | |
149 | 151 | |
150 | 152 | |
|
Collapse file
test/message/vm_caught_custom_runtime_error.js
Copy file name to clipboard+18Lines changed: 18 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 | + |
Collapse file
test/message/vm_caught_custom_runtime_error.out
Copy file name to clipboard+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
0 commit comments