Commit 18071db
assert: fix throws trace
The current stack trace thrown in case `assert.throws(fn, object)`
is used did not filter the stack trace. This fixes it.
Backport-PR-URL: #23223
PR-URL: #18595
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>1 parent 562787e commit 18071dbCopy full SHA for 18071db
File tree
Expand file treeCollapse file tree
3 files changed
+35
-19
lines changedOpen diff view settings
Filter options
- lib
- test/message
Expand file treeCollapse file tree
3 files changed
+35
-19
lines changedOpen diff view settings
Collapse file
+15-19Lines changed: 15 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
661 | 661 | |
662 | 662 | |
663 | 663 | |
664 | | - |
665 | | - |
666 | | - |
667 | | - |
668 | | - |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
| 671 | + |
| 672 | + |
| 673 | + |
| 674 | + |
669 | 675 | |
670 | 676 | |
671 | 677 | |
| ||
680 | 686 | |
681 | 687 | |
682 | 688 | |
683 | | - |
684 | | - |
685 | | - |
686 | | - |
| 689 | + |
687 | 690 | |
688 | 691 | |
689 | | - |
690 | | - |
691 | | - |
692 | | - |
| 692 | + |
693 | 693 | |
694 | | - |
695 | | - |
696 | | - |
697 | | - |
698 | | - |
699 | | - |
| 694 | + |
| 695 | + |
700 | 696 | |
701 | 697 | |
702 | 698 | |
|
Collapse file
test/message/assert_throws_stack.js
Copy file name to clipboard+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
Collapse file
test/message/assert_throws_stack.out
Copy file name to clipboard+14Lines changed: 14 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 | + |
0 commit comments