Skip to content

Commit e67f11b

Browse files
Improves documentation for HostImportModuleDynamicallyCallback (denoland#1658)
Improves documentation for ostImportModuleDynamicallyCallback
1 parent a81cafd commit e67f11b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/isolate.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ pub type HostInitializeImportMetaObjectCallback =
189189
/// HostImportModuleDynamicallyCallback is called when we require the embedder
190190
/// to load a module. This is used as part of the dynamic import syntax.
191191
///
192-
/// The referrer contains metadata about the script/module that calls import.
192+
/// The host_defined_options are metadata provided by the host environment, which may be used
193+
/// to customize or further specify how the module should be imported.
194+
195+
/// The resource_name is the identifier or path for the module or script making the import request.
193196
///
194197
/// The specifier is the name of the module that should be imported.
195198
///

0 commit comments

Comments
 (0)