@FunctionalInterface public interface ImportModuleDynamicallyCallback
HostImportModuleDynamically).| Modifier and Type | Method and Description |
|---|---|
com.oracle.truffle.api.object.DynamicObject |
importModuleDynamically(JSRealm realm,
ScriptOrModule referrer,
String specifier)
Executes the embedder-provided callback to resolve a dynamically imported module.
|
com.oracle.truffle.api.object.DynamicObject importModuleDynamically(JSRealm realm, ScriptOrModule referrer, String specifier)
realm - The caller realm.referrer - Script or Module that calls import().specifier - The name of the module to be imported.