Commit 2e1732e
deps: V8: backport 22698d267667
Original commit message:
[module] Fix aborts in terminated async module evaluation
SourceTextModule::ExecuteAsyncModule asserts the execution of
the module's async function to succeed without exception. However,
the problem is that TerminateExecution initiated by embedders is
breaking that assumption. The execution can be terminated with an
exception and the exception is not catchable by JavaScript.
The uncatchable exceptions during the async module evaluation need
to be raised to the embedder and not crash the process if possible.
Refs: #43182
Change-Id: Ifc152428b95945b6b49a2f70ba35018cfc0ce40b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3696493
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Chengzhong Wu <legendecas@gmail.com>
Cr-Commit-Position: refs/heads/main@{#81307}
Refs: v8/v8@22698d2
PR-URL: #43751
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>1 parent ceb7c15 commit 2e1732eCopy full SHA for 2e1732e
File tree
Expand file treeCollapse file tree
5 files changed
+158
-15
lines changedOpen diff view settings
Filter options
- deps/v8
- src
- builtins
- objects
- test/cctest
Expand file treeCollapse file tree
5 files changed
+158
-15
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
|
Collapse file
deps/v8/src/builtins/builtins-async-module.cc
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/builtins-async-module.cc+9-1Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
16 | 24 | |
17 | 25 | |
18 | 26 | |
|
Collapse file
deps/v8/src/objects/source-text-module.cc
Copy file name to clipboardExpand all lines: deps/v8/src/objects/source-text-module.cc+24-7Lines changed: 24 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
749 | 749 | |
750 | 750 | |
751 | 751 | |
752 | | - |
| 752 | + |
753 | 753 | |
754 | 754 | |
755 | 755 | |
756 | 756 | |
757 | 757 | |
758 | 758 | |
759 | | - |
| 759 | + |
760 | 760 | |
761 | 761 | |
762 | 762 | |
| ||
812 | 812 | |
813 | 813 | |
814 | 814 | |
815 | | - |
| 815 | + |
| 816 | + |
| 817 | + |
816 | 818 | |
817 | 819 | |
818 | 820 | |
| ||
846 | 848 | |
847 | 849 | |
848 | 850 | |
| 851 | + |
849 | 852 | |
850 | 853 | |
851 | 854 | |
| ||
905 | 908 | |
906 | 909 | |
907 | 910 | |
908 | | - |
909 | | - |
| 911 | + |
| 912 | + |
| 913 | + |
910 | 914 | |
911 | 915 | |
912 | 916 | |
| ||
956 | 960 | |
957 | 961 | |
958 | 962 | |
959 | | - |
| 963 | + |
| 964 | + |
| 965 | + |
| 966 | + |
| 967 | + |
| 968 | + |
| 969 | + |
| 970 | + |
| 971 | + |
| 972 | + |
960 | 973 | |
961 | 974 | |
| 975 | + |
962 | 976 | |
963 | 977 | |
964 | 978 | |
| ||
1145 | 1159 | |
1146 | 1160 | |
1147 | 1161 | |
| 1162 | + |
| 1163 | + |
1148 | 1164 | |
1149 | | - |
| 1165 | + |
| 1166 | + |
1150 | 1167 | |
1151 | 1168 | |
1152 | 1169 | |
|
Collapse file
deps/v8/src/objects/source-text-module.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/source-text-module.h+8-6Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
58 | | - |
59 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
60 | 61 | |
61 | 62 | |
62 | 63 | |
| ||
201 | 202 | |
202 | 203 | |
203 | 204 | |
204 | | - |
205 | | - |
206 | | - |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
207 | 209 | |
208 | 210 | |
209 | 211 | |
|
Collapse file
deps/v8/test/cctest/test-api.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-api.cc+116Lines changed: 116 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24649 | 24649 | |
24650 | 24650 | |
24651 | 24651 | |
| 24652 | + |
| 24653 | + |
| 24654 | + |
| 24655 | + |
| 24656 | + |
| 24657 | + |
| 24658 | + |
| 24659 | + |
| 24660 | + |
| 24661 | + |
| 24662 | + |
| 24663 | + |
| 24664 | + |
| 24665 | + |
| 24666 | + |
| 24667 | + |
| 24668 | + |
| 24669 | + |
| 24670 | + |
| 24671 | + |
| 24672 | + |
| 24673 | + |
| 24674 | + |
| 24675 | + |
| 24676 | + |
| 24677 | + |
| 24678 | + |
| 24679 | + |
| 24680 | + |
| 24681 | + |
| 24682 | + |
| 24683 | + |
| 24684 | + |
| 24685 | + |
| 24686 | + |
| 24687 | + |
| 24688 | + |
| 24689 | + |
| 24690 | + |
| 24691 | + |
| 24692 | + |
| 24693 | + |
| 24694 | + |
| 24695 | + |
| 24696 | + |
| 24697 | + |
| 24698 | + |
| 24699 | + |
| 24700 | + |
| 24701 | + |
| 24702 | + |
| 24703 | + |
| 24704 | + |
| 24705 | + |
| 24706 | + |
| 24707 | + |
| 24708 | + |
| 24709 | + |
| 24710 | + |
| 24711 | + |
| 24712 | + |
| 24713 | + |
| 24714 | + |
| 24715 | + |
| 24716 | + |
| 24717 | + |
| 24718 | + |
| 24719 | + |
| 24720 | + |
| 24721 | + |
| 24722 | + |
| 24723 | + |
| 24724 | + |
| 24725 | + |
| 24726 | + |
| 24727 | + |
| 24728 | + |
| 24729 | + |
| 24730 | + |
| 24731 | + |
| 24732 | + |
| 24733 | + |
| 24734 | + |
| 24735 | + |
| 24736 | + |
| 24737 | + |
| 24738 | + |
| 24739 | + |
| 24740 | + |
| 24741 | + |
| 24742 | + |
| 24743 | + |
| 24744 | + |
| 24745 | + |
| 24746 | + |
| 24747 | + |
| 24748 | + |
| 24749 | + |
| 24750 | + |
| 24751 | + |
| 24752 | + |
| 24753 | + |
| 24754 | + |
| 24755 | + |
| 24756 | + |
| 24757 | + |
| 24758 | + |
| 24759 | + |
| 24760 | + |
| 24761 | + |
| 24762 | + |
| 24763 | + |
| 24764 | + |
| 24765 | + |
| 24766 | + |
| 24767 | + |
24652 | 24768 | |
24653 | 24769 | |
24654 | 24770 | |
|
0 commit comments