@@ -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 ` "assert" ` value passed to the
@@ -765,6 +767,9 @@ changes:
765
767
* `importModuleDynamically` {Function} Called during evaluation of this module
766
768
when `import()` is called. If this option is not specified, calls to
767
769
`import()` will reject with [`ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING`][].
770
+ If `--experimental-vm-modules` isn' t set, this callback will be ignored
771
+ and calls to ` import()` will reject with
772
+ [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ][].
768
773
* ` specifier` {string} specifier passed to ` import()`
769
774
* ` module` {vm .Module }
770
775
* ` importAttributes` {Object } The ` "assert"` value passed to the
@@ -1022,7 +1027,9 @@ changes:
1022
1027
when ` import() ` is called. If this option is not specified, calls to
1023
1028
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1024
1029
This option is part of the experimental modules API, and should not be
1025
- considered stable.
1030
+ considered stable. If ` --experimental-vm-modules ` isn't
1031
+ set, this callback will be ignored and calls to ` import() ` will reject with
1032
+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
1026
1033
* ` specifier ` {string} specifier passed to ` import() `
1027
1034
* ` function ` {Function}
1028
1035
* ` importAttributes ` {Object} The ` "assert" ` value passed to the
@@ -1246,7 +1253,9 @@ changes:
1246
1253
when ` import() ` is called. If this option is not specified, calls to
1247
1254
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1248
1255
This option is part of the experimental modules API. We do not recommend
1249
- using it in a production environment.
1256
+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1257
+ set, this callback will be ignored and calls to ` import() ` will reject with
1258
+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
1250
1259
* ` specifier ` {string} specifier passed to ` import() `
1251
1260
* ` script ` {vm.Script}
1252
1261
* ` importAttributes ` {Object} The ` "assert" ` value passed to the
@@ -1345,7 +1354,9 @@ changes:
1345
1354
when ` import() ` is called. If this option is not specified, calls to
1346
1355
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1347
1356
This option is part of the experimental modules API. We do not recommend
1348
- using it in a production environment.
1357
+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1358
+ set, this callback will be ignored and calls to ` import() ` will reject with
1359
+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
1349
1360
* ` specifier ` {string} specifier passed to ` import() `
1350
1361
* ` script ` {vm.Script}
1351
1362
* ` importAttributes ` {Object} The ` "assert" ` value passed to the
@@ -1425,7 +1436,9 @@ changes:
1425
1436
when ` import() ` is called. If this option is not specified, calls to
1426
1437
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1427
1438
This option is part of the experimental modules API. We do not recommend
1428
- using it in a production environment.
1439
+ using it in a production environment. If ` --experimental-vm-modules ` isn't
1440
+ set, this callback will be ignored and calls to ` import() ` will reject with
1441
+ [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG ` ] [ ] .
1429
1442
* ` specifier ` {string} specifier passed to ` import() `
1430
1443
* ` script ` {vm.Script}
1431
1444
* ` importAttributes ` {Object} The ` "assert" ` value passed to the
@@ -1589,6 +1602,7 @@ are not controllable through the timeout either.
1589
1602
[ Source Text Module Record ] : https://tc39.es/ecma262/#sec-source-text-module-records
1590
1603
[ Synthetic Module Record ] : https://heycam.github.io/webidl/#synthetic-module-records
1591
1604
[ V8 Embedder's Guide ] : https://v8.dev/docs/embed#contexts
1605
+ [ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG` ] : errors.md#err_vm_dynamic_import_callback_missing_flag
1592
1606
[ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ] : errors.md#err_vm_dynamic_import_callback_missing
1593
1607
[ `ERR_VM_MODULE_STATUS` ] : errors.md#err_vm_module_status
1594
1608
[ `Error` ] : errors.md#class-error
0 commit comments