MCPcopy Index your code
hub / github.com/HiRoFa/quickjs_es_runtime / CompiledModuleLoader

Interface CompiledModuleLoader

src/jsutils/modules.rs:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15pub trait CompiledModuleLoader {
16 fn normalize_path(
17 &self,
18 realm: &QuickJsRealmAdapter,
19 ref_path: &str,
20 path: &str,
21 ) -> Option<String>;
22 fn load_module(&self, realm: &QuickJsRealmAdapter, absolute_path: &str) -> Arc<Vec<u8>>;
23}
24
25pub trait NativeModuleLoader {
26 fn has_module(&self, realm: &QuickJsRealmAdapter, module_name: &str) -> bool;

Callers

nothing calls this directly

Implementers 1

compile.rssrc/quickjs_utils/compile.rs

Calls

no outgoing calls

Tested by

no test coverage detected