@@ -98,7 +98,9 @@ changes:
9898 when ` import() ` is called. If this option is not specified, calls to
9999 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
100100 This option is part of the experimental modules API. We do not recommend
101- using it in a production environment.
101+ using it in a production environment. If ` --experimental-vm-modules ` isn't
102+ set, this callback will be ignored and calls to ` import() ` will reject with
103+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
102104 * ` specifier ` {string} specifier passed to ` import() `
103105 * ` script ` {vm.Script}
104106 * ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -767,6 +769,9 @@ changes:
767769 * `importModuleDynamically` {Function} Called during evaluation of this module
768770 when `import()` is called. If this option is not specified, calls to
769771 `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][].
772+ If `--experimental-vm-modules` isn' t set, this callback will be ignored
773+ and calls to ` import()` will reject with
774+ [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ][].
770775 * ` specifier` {string} specifier passed to ` import()`
771776 * ` module` {vm .Module }
772777 * ` importAttributes` {Object } The ` "with"` value passed to the
@@ -1025,7 +1030,9 @@ changes:
10251030 when ` import() ` is called. If this option is not specified, calls to
10261031 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
10271032 This option is part of the experimental modules API, and should not be
1028- considered stable.
1033+ considered stable. If ` --experimental-vm-modules ` isn't
1034+ set, this callback will be ignored and calls to ` import() ` will reject with
1035+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
10291036 * ` specifier ` {string} specifier passed to ` import() `
10301037 * ` function ` {Function}
10311038 * ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1249,7 +1256,9 @@ changes:
12491256 when ` import() ` is called. If this option is not specified, calls to
12501257 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
12511258 This option is part of the experimental modules API. We do not recommend
1252- using it in a production environment.
1259+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1260+ set, this callback will be ignored and calls to ` import() ` will reject with
1261+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
12531262 * ` specifier ` {string} specifier passed to ` import() `
12541263 * ` script ` {vm.Script}
12551264 * ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1348,7 +1357,9 @@ changes:
13481357 when ` import() ` is called. If this option is not specified, calls to
13491358 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
13501359 This option is part of the experimental modules API. We do not recommend
1351- using it in a production environment.
1360+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1361+ set, this callback will be ignored and calls to ` import() ` will reject with
1362+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
13521363 * ` specifier ` {string} specifier passed to ` import() `
13531364 * ` script ` {vm.Script}
13541365 * ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1428,7 +1439,9 @@ changes:
14281439 when ` import() ` is called. If this option is not specified, calls to
14291440 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
14301441 This option is part of the experimental modules API. We do not recommend
1431- using it in a production environment.
1442+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1443+ set, this callback will be ignored and calls to ` import() ` will reject with
1444+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
14321445 * ` specifier ` {string} specifier passed to ` import() `
14331446 * ` script ` {vm.Script}
14341447 * ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1592,6 +1605,7 @@ are not controllable through the timeout either.
15921605[ Source Text Module Record ] : https://tc39.es/ecma262/#sec-source-text-module-records
15931606[ Synthetic Module Record ] : https://heycam.github.io/webidl/#synthetic-module-records
15941607[ V8 Embedder's Guide ] : https://v8.dev/docs/embed#contexts
1608+ [ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ] : errors.md#err_vm_dynamic_import_callback_missing_flag
15951609[ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ] : errors.md#err_vm_dynamic_import_callback_missing
15961610[ `ERR_VM_MODULE_STATUS` ] : errors.md#err_vm_module_status
15971611[ `Error` ] : errors.md#class-error
0 commit comments