@@ -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 * ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -760,6 +762,9 @@ changes:
760762 * `importModuleDynamically` {Function} Called during evaluation of this module
761763 when `import()` is called. If this option is not specified, calls to
762764 `import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][].
765+ If `--experimental-vm-modules` isn' t set, this callback will be ignored
766+ and calls to ` import()` will reject with
767+ [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ][].
763768 * ` specifier` {string} specifier passed to ` import()`
764769 * ` module` {vm .Module }
765770 * ` importAssertions` {Object } The ` "assert"` value passed to the
@@ -1018,7 +1023,9 @@ changes:
10181023 when ` import() ` is called. If this option is not specified, calls to
10191024 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
10201025 This option is part of the experimental modules API, and should not be
1021- considered stable.
1026+ considered stable. If ` --experimental-vm-modules ` isn't
1027+ set, this callback will be ignored and calls to ` import() ` will reject with
1028+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
10221029 * ` specifier ` {string} specifier passed to ` import() `
10231030 * ` function ` {Function}
10241031 * ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1242,7 +1249,9 @@ changes:
12421249 when ` import() ` is called. If this option is not specified, calls to
12431250 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
12441251 This option is part of the experimental modules API. We do not recommend
1245- using it in a production environment.
1252+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1253+ set, this callback will be ignored and Calls to ` import() ` will reject with
1254+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
12461255 * ` specifier ` {string} specifier passed to ` import() `
12471256 * ` script ` {vm.Script}
12481257 * ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1341,7 +1350,9 @@ changes:
13411350 when ` import() ` is called. If this option is not specified, calls to
13421351 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
13431352 This option is part of the experimental modules API. We do not recommend
1344- using it in a production environment.
1353+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1354+ set, this callback will be ignored and Calls to ` import() ` will reject with
1355+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
13451356 * ` specifier ` {string} specifier passed to ` import() `
13461357 * ` script ` {vm.Script}
13471358 * ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1421,7 +1432,9 @@ changes:
14211432 when ` import() ` is called. If this option is not specified, calls to
14221433 ` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
14231434 This option is part of the experimental modules API. We do not recommend
1424- using it in a production environment.
1435+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1436+ set, this callback will be ignored and Calls to ` import() ` will reject with
1437+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
14251438 * ` specifier ` {string} specifier passed to ` import() `
14261439 * ` script ` {vm.Script}
14271440 * ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1585,6 +1598,7 @@ are not controllable through the timeout either.
15851598[ Source Text Module Record ] : https://tc39.es/ecma262/#sec-source-text-module-records
15861599[ Synthetic Module Record ] : https://heycam.github.io/webidl/#synthetic-module-records
15871600[ V8 Embedder's Guide ] : https://v8.dev/docs/embed#contexts
1601+ [ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ] : errors.md#err_vm_dynamic_import_callback_missing_flag
15881602[ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ] : errors.md#err_vm_dynamic_import_callback_missing
15891603[ `ERR_VM_MODULE_STATUS` ] : errors.md#err_vm_module_status
15901604[ `Error` ] : errors.md#class-error
0 commit comments