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

Interface ScriptModuleLoader

src/jsutils/modules.rs:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3use std::sync::Arc;
4
5pub trait ScriptModuleLoader {
6 fn normalize_path(
7 &self,
8 realm: &QuickJsRealmAdapter,
9 ref_path: &str,
10 path: &str,
11 ) -> Option<String>;
12 fn load_module(&self, realm: &QuickJsRealmAdapter, absolute_path: &str) -> String;
13}
14
15pub trait CompiledModuleLoader {
16 fn normalize_path(

Callers

nothing calls this directly

Implementers 3

facades.rssrc/facades.rs
quickjsruntimeadapter.rssrc/quickjsruntimeadapter.rs
test_module_loadersrc/builder.rs

Calls

no outgoing calls

Tested by

no test coverage detected