@FunctionalInterface public interface ImportModuleDynamicallyCallback
HostImportModuleDynamically).| Modifier and Type | Method and Description |
|---|---|
JSDynamicObject |
importModuleDynamically(JSRealm realm,
ScriptOrModule referrer,
Module.ModuleRequest moduleRequest)
Executes the embedder-provided callback to resolve a dynamically imported module.
|
JSDynamicObject importModuleDynamically(JSRealm realm, ScriptOrModule referrer, Module.ModuleRequest moduleRequest)
realm - The caller realm.referrer - Script or Module that calls import().moduleRequest - The name of the module to be imported and its assertions.