Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commitfe66e9d
vm: reject in importModuleDynamically without --experimental-vm-modules
Users cannot access any API that can be used to return a module ormodule namespace in this callback without --experimental-vm-modulesanyway, so this would eventually lead to a rejection. This patchrejects in this case with our own error message and use a constanthost-defined option for the rejection, so that scripts with thesame source can still be compiled using the compilation cacheif no `import()` is actually called in the script.PR-URL:#50137Backport-PR-URL:#51004Refs:#35375Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Reviewed-By: Chengzhong Wu <legendecas@gmail.com>Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent052e095 commitfe66e9d
File tree
7 files changed
+81
-7
lines changed- doc/api
- lib/internal
- modules/esm
- src
- test/parallel
7 files changed
+81
-7
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2985 | 2985 |
| |
2986 | 2986 |
| |
2987 | 2987 |
| |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
2988 | 2994 |
| |
2989 | 2995 |
| |
2990 | 2996 |
| |
|
Lines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
| |||
765 | 767 |
| |
766 | 768 |
| |
767 | 769 |
| |
| 770 | + | |
| 771 | + | |
| 772 | + | |
768 | 773 |
| |
769 | 774 |
| |
770 | 775 |
| |
| |||
1022 | 1027 |
| |
1023 | 1028 |
| |
1024 | 1029 |
| |
1025 |
| - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1026 | 1033 |
| |
1027 | 1034 |
| |
1028 | 1035 |
| |
| |||
1246 | 1253 |
| |
1247 | 1254 |
| |
1248 | 1255 |
| |
1249 |
| - | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
1250 | 1259 |
| |
1251 | 1260 |
| |
1252 | 1261 |
| |
| |||
1345 | 1354 |
| |
1346 | 1355 |
| |
1347 | 1356 |
| |
1348 |
| - | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1349 | 1360 |
| |
1350 | 1361 |
| |
1351 | 1362 |
| |
| |||
1425 | 1436 |
| |
1426 | 1437 |
| |
1427 | 1438 |
| |
1428 |
| - | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
1429 | 1442 |
| |
1430 | 1443 |
| |
1431 | 1444 |
| |
| |||
1589 | 1602 |
| |
1590 | 1603 |
| |
1591 | 1604 |
| |
| 1605 | + | |
1592 | 1606 |
| |
1593 | 1607 |
| |
1594 | 1608 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1716 | 1716 |
| |
1717 | 1717 |
| |
1718 | 1718 |
| |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1719 | 1722 |
| |
1720 | 1723 |
| |
1721 | 1724 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 | 24 |
| |
| |||
132 | 134 |
| |
133 | 135 |
| |
134 | 136 |
| |
135 |
| - | |
| 137 | + | |
| 138 | + | |
136 | 139 |
| |
137 | 140 |
| |
138 | 141 |
| |
| |||
173 | 176 |
| |
174 | 177 |
| |
175 | 178 |
| |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 |
| |
177 | 183 |
| |
178 | 184 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 |
| |
25 | 31 |
| |
26 | 32 |
| |
| |||
40 | 46 |
| |
41 | 47 |
| |
42 | 48 |
| |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
43 | 59 |
| |
44 | 60 |
| |
45 | 61 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
|
Lines changed: 28 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 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + |
0 commit comments
Comments
(0)