Commit 37263c0
authored
fix: support some virtual contexts in
* fix: support some virtual contexts in `toThrow`
This adds support for VM situations where we pass a `RegExp` from
another process.
Note that we don't have a full fix for this stuff until `check-error`
also supports `Error` being from another origin.
* fix: support throwing of unusual errors
Adds support for throwing things like `undefined`, functions, etc.
* chore: upgrade check-errortoThrow (#1609)1 parent 91e58ed commit 37263c0
File tree
7 files changed
+83
-13
lines changed- lib/chai
- core
- utils
- test
7 files changed
+83
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2676 | 2676 | | |
2677 | 2677 | | |
2678 | 2678 | | |
2679 | | - | |
| 2679 | + | |
2680 | 2680 | | |
2681 | 2681 | | |
2682 | 2682 | | |
2683 | 2683 | | |
2684 | | - | |
| 2684 | + | |
| 2685 | + | |
2685 | 2686 | | |
2686 | 2687 | | |
2687 | 2688 | | |
| 2689 | + | |
2688 | 2690 | | |
2689 | 2691 | | |
2690 | 2692 | | |
| |||
2708 | 2710 | | |
2709 | 2711 | | |
2710 | 2712 | | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
2711 | 2727 | | |
2712 | | - | |
| 2728 | + | |
2713 | 2729 | | |
2714 | 2730 | | |
2715 | 2731 | | |
2716 | | - | |
2717 | | - | |
2718 | | - | |
| 2732 | + | |
2719 | 2733 | | |
2720 | 2734 | | |
2721 | 2735 | | |
| |||
2760 | 2774 | | |
2761 | 2775 | | |
2762 | 2776 | | |
2763 | | - | |
| 2777 | + | |
2764 | 2778 | | |
2765 | 2779 | | |
2766 | 2780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
| 1638 | + | |
| 1639 | + | |
1638 | 1640 | | |
1639 | 1641 | | |
1640 | 1642 | | |
| |||
1644 | 1646 | | |
1645 | 1647 | | |
1646 | 1648 | | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1647 | 1655 | | |
1648 | 1656 | | |
1649 | 1657 | | |
| |||
| 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 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
0 commit comments