From e67f11bf79e1f10f7d650afc20a645dbe341986c Mon Sep 17 00:00:00 2001 From: Blanky <131886247+BLANKatGITHUB@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:51:51 -0500 Subject: [PATCH] Improves documentation for HostImportModuleDynamicallyCallback (#1658) Improves documentation for ostImportModuleDynamicallyCallback --- src/isolate.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/isolate.rs b/src/isolate.rs index a2de0ba9..edde8584 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -189,7 +189,10 @@ pub type HostInitializeImportMetaObjectCallback = /// HostImportModuleDynamicallyCallback is called when we require the embedder /// to load a module. This is used as part of the dynamic import syntax. /// -/// The referrer contains metadata about the script/module that calls import. +/// The host_defined_options are metadata provided by the host environment, which may be used +/// to customize or further specify how the module should be imported. + +/// The resource_name is the identifier or path for the module or script making the import request. /// /// The specifier is the name of the module that should be imported. ///