Files
node/doc/api
Joyee Cheung 9853fd96df vm: reject in importModuleDynamically without --experimental-vm-modules
Users cannot access any API that can be used to return a module or
module namespace in this callback without --experimental-vm-modules
anyway, so this would eventually lead to a rejection. This patch
rejects in this case with our own error message and use a constant
host-defined option for the rejection, so that scripts with the
same source can still be compiled using the compilation cache
if no `import()` is actually called in the script.

PR-URL: https://github.com/nodejs/node/pull/50137
Refs: https://github.com/nodejs/node/issues/35375
Reviewed-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>
2023-11-11 20:27:31 +01:00
..
2023-05-12 11:57:05 +02:00
2023-07-18 13:45:29 -05:00
2023-05-02 09:34:04 +02:00
2023-05-03 08:57:36 +02:00
2023-01-14 14:25:08 +00:00
2023-05-02 09:34:04 +02:00
2023-09-27 23:10:20 -04:00
2023-11-11 19:34:08 +01:00
2023-07-04 19:18:25 -03:00
2023-08-17 08:35:58 -03:00
2023-07-18 13:45:29 -05:00
2023-08-17 08:35:58 -03:00
2023-09-18 15:01:59 +00:00
2023-07-18 13:45:29 -05:00
2023-07-04 19:18:25 -03:00
2022-11-01 04:21:13 +00:00
2023-05-30 11:36:18 +02:00
2023-09-27 23:10:21 -04:00
2023-09-28 16:44:08 -04:00