@@ -98,7 +98,9 @@ changes:
98
98
when ` import() ` is called. If this option is not specified, calls to
99
99
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
100
100
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 ` ] [ ] .
102
104
* ` specifier ` {string} specifier passed to ` import() `
103
105
* ` script ` {vm.Script}
104
106
* ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -767,6 +769,9 @@ changes:
767
769
* `importModuleDynamically` {Function} Called during evaluation of this module
768
770
when `import()` is called. If this option is not specified, calls to
769
771
`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` ][].
770
775
* ` specifier` {string} specifier passed to ` import()`
771
776
* ` module` {vm .Module }
772
777
* ` importAttributes` {Object } The ` "with"` value passed to the
@@ -1025,7 +1030,9 @@ changes:
1025
1030
when ` import() ` is called. If this option is not specified, calls to
1026
1031
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1027
1032
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 ` ] [ ] .
1029
1036
* ` specifier ` {string} specifier passed to ` import() `
1030
1037
* ` function ` {Function}
1031
1038
* ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1249,7 +1256,9 @@ changes:
1249
1256
when ` import() ` is called. If this option is not specified, calls to
1250
1257
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1251
1258
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 ` ] [ ] .
1253
1262
* ` specifier ` {string} specifier passed to ` import() `
1254
1263
* ` script ` {vm.Script}
1255
1264
* ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1348,7 +1357,9 @@ changes:
1348
1357
when ` import() ` is called. If this option is not specified, calls to
1349
1358
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1350
1359
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 ` ] [ ] .
1352
1363
* ` specifier ` {string} specifier passed to ` import() `
1353
1364
* ` script ` {vm.Script}
1354
1365
* ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1428,7 +1439,9 @@ changes:
1428
1439
when ` import() ` is called. If this option is not specified, calls to
1429
1440
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1430
1441
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 ` ] [ ] .
1432
1445
* ` specifier ` {string} specifier passed to ` import() `
1433
1446
* ` script ` {vm.Script}
1434
1447
* ` importAttributes ` {Object} The ` "with" ` value passed to the
@@ -1592,6 +1605,7 @@ are not controllable through the timeout either.
1592
1605
[ Source Text Module Record ] : https://tc39.es/ecma262/#sec-source-text-module-records
1593
1606
[ Synthetic Module Record ] : https://heycam.github.io/webidl/#synthetic-module-records
1594
1607
[ 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
1595
1609
[ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ] : errors.md#err_vm_dynamic_import_callback_missing
1596
1610
[ `ERR_VM_MODULE_STATUS` ] : errors.md#err_vm_module_status
1597
1611
[ `Error` ] : errors.md#class-error
0 commit comments