@@ -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
* ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -760,6 +762,9 @@ changes:
760
762
* `importModuleDynamically` {Function} Called during evaluation of this module
761
763
when `import()` is called. If this option is not specified, calls to
762
764
`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` ][].
763
768
* ` specifier` {string} specifier passed to ` import()`
764
769
* ` module` {vm .Module }
765
770
* ` importAssertions` {Object } The ` "assert"` value passed to the
@@ -1018,7 +1023,9 @@ changes:
1018
1023
when ` import() ` is called. If this option is not specified, calls to
1019
1024
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1020
1025
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 ` ] [ ] .
1022
1029
* ` specifier ` {string} specifier passed to ` import() `
1023
1030
* ` function ` {Function}
1024
1031
* ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1242,7 +1249,9 @@ changes:
1242
1249
when ` import() ` is called. If this option is not specified, calls to
1243
1250
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1244
1251
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 ` ] [ ] .
1246
1255
* ` specifier ` {string} specifier passed to ` import() `
1247
1256
* ` script ` {vm.Script}
1248
1257
* ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1341,7 +1350,9 @@ changes:
1341
1350
when ` import() ` is called. If this option is not specified, calls to
1342
1351
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1343
1352
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 ` ] [ ] .
1345
1356
* ` specifier ` {string} specifier passed to ` import() `
1346
1357
* ` script ` {vm.Script}
1347
1358
* ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1421,7 +1432,9 @@ changes:
1421
1432
when ` import() ` is called. If this option is not specified, calls to
1422
1433
` import() ` will reject with [ ` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING ` ] [ ] .
1423
1434
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 ` ] [ ] .
1425
1438
* ` specifier ` {string} specifier passed to ` import() `
1426
1439
* ` script ` {vm.Script}
1427
1440
* ` importAssertions ` {Object} The ` "assert" ` value passed to the
@@ -1585,6 +1598,7 @@ are not controllable through the timeout either.
1585
1598
[ Source Text Module Record ] : https://tc39.es/ecma262/#sec-source-text-module-records
1586
1599
[ Synthetic Module Record ] : https://heycam.github.io/webidl/#synthetic-module-records
1587
1600
[ 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
1588
1602
[ `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ] : errors.md#err_vm_dynamic_import_callback_missing
1589
1603
[ `ERR_VM_MODULE_STATUS` ] : errors.md#err_vm_module_status
1590
1604
[ `Error` ] : errors.md#class-error
0 commit comments