@@ -88,7 +88,7 @@ changes:
88
88
This option is part of the experimental modules API, and should not be
89
89
considered stable.
90
90
* ` specifier ` {string} specifier passed to ` import() `
91
- * ` script ` {vm.Script }
91
+ * ` module ` {vm.Module }
92
92
* Returns: {Module Namespace Object|vm.Module} Returning a ` vm.Module ` is
93
93
recommended in order to take advantage of error tracking, and to avoid
94
94
issues with namespaces that contain ` then ` function exports.
@@ -805,6 +805,9 @@ changes:
805
805
- version: v14.1 .0
806
806
pr- url: https: // github.com/nodejs/node/pull/32985
807
807
description: The ` importModuleDynamically` option is now supported.
808
+ - version: REPLACEME
809
+ pr- url: https: // github.com/nodejs/node/pull/33364
810
+ description: Removal of ` importModuleDynamically` due to compatibility issues
808
811
-->
809
812
810
813
* ` code` {string} The body of the function to compile.
@@ -827,16 +830,6 @@ changes:
827
830
* `contextExtensions` {Object[]} An array containing a collection of context
828
831
extensions (objects wrapping the current scope ) to be applied while
829
832
compiling. **Default:** `[]`.
830
- * `importModuleDynamically` {Function } Called during evaluation of this module
831
- when ` import()` is called . If this option is not specified, calls to
832
- ` import()` will reject with [` ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` ][].
833
- This option is part of the experimental modules API , and should not be
834
- considered stable.
835
- * ` specifier` {string} specifier passed to ` import()`
836
- * ` function` {Function }
837
- * Returns: {Module Namespace Object | vm .Module } Returning a ` vm.Module` is
838
- recommended in order to take advantage of error tracking, and to avoid
839
- issues with namespaces that contain ` then` function exports.
840
833
* Returns: {Function }
841
834
842
835
Compiles the given code into the provided context (if no context is
0 commit comments