mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: importModuleDynamically gets Script, not Module
PR-URL: https://github.com/nodejs/node/pull/35593 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
committed by
Rich Trott
parent
9ce5a03148
commit
ee85eb9f8a
@@ -90,7 +90,7 @@ changes:
|
||||
This option is part of the experimental modules API, and should not be
|
||||
considered stable.
|
||||
* `specifier` {string} specifier passed to `import()`
|
||||
* `module` {vm.Module}
|
||||
* `script` {vm.Script}
|
||||
* Returns: {Module Namespace Object|vm.Module} Returning a `vm.Module` is
|
||||
recommended in order to take advantage of error tracking, and to avoid
|
||||
issues with namespaces that contain `then` function exports.
|
||||
@@ -984,7 +984,7 @@ changes:
|
||||
This option is part of the experimental modules API, and should not be
|
||||
considered stable.
|
||||
* `specifier` {string} specifier passed to `import()`
|
||||
* `module` {vm.Module}
|
||||
* `script` {vm.Script}
|
||||
* Returns: {Module Namespace Object|vm.Module} Returning a `vm.Module` is
|
||||
recommended in order to take advantage of error tracking, and to avoid
|
||||
issues with namespaces that contain `then` function exports.
|
||||
@@ -1082,7 +1082,7 @@ changes:
|
||||
This option is part of the experimental modules API, and should not be
|
||||
considered stable.
|
||||
* `specifier` {string} specifier passed to `import()`
|
||||
* `module` {vm.Module}
|
||||
* `script` {vm.Script}
|
||||
* Returns: {Module Namespace Object|vm.Module} Returning a `vm.Module` is
|
||||
recommended in order to take advantage of error tracking, and to avoid
|
||||
issues with namespaces that contain `then` function exports.
|
||||
@@ -1161,7 +1161,7 @@ changes:
|
||||
This option is part of the experimental modules API, and should not be
|
||||
considered stable.
|
||||
* `specifier` {string} specifier passed to `import()`
|
||||
* `module` {vm.Module}
|
||||
* `script` {vm.Script}
|
||||
* Returns: {Module Namespace Object|vm.Module} Returning a `vm.Module` is
|
||||
recommended in order to take advantage of error tracking, and to avoid
|
||||
issues with namespaces that contain `then` function exports.
|
||||
|
||||
@@ -206,6 +206,7 @@ const customTypesMap = {
|
||||
'URLSearchParams': 'url.html#url_class_urlsearchparams',
|
||||
|
||||
'vm.Module': 'vm.html#vm_class_vm_module',
|
||||
'vm.Script': 'vm.html#vm_class_vm_script',
|
||||
'vm.SourceTextModule': 'vm.html#vm_class_vm_sourcetextmodule',
|
||||
|
||||
'MessagePort': 'worker_threads.html#worker_threads_class_messageport',
|
||||
|
||||
Reference in New Issue
Block a user