MCPcopy Create free account
hub / github.com/HiRoFa/quickjs_es_runtime / NativeModuleLoader

Interface NativeModuleLoader

src/jsutils/modules.rs:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25pub trait NativeModuleLoader {
26 fn has_module(&self, realm: &QuickJsRealmAdapter, module_name: &str) -> bool;
27 fn get_module_export_names(&self, realm: &QuickJsRealmAdapter, module_name: &str) -> Vec<&str>;
28 fn get_module_exports(
29 &self,
30 realm: &QuickJsRealmAdapter,
31 module_name: &str,
32 ) -> Vec<(&str, QuickJsValueAdapter)>;
33}

Callers

nothing calls this directly

Implementers 1

facades.rssrc/facades.rs

Calls

no outgoing calls

Tested by

no test coverage detected