pub fn load_module(
spec: &str,
resolver: &dyn ModuleResolver,
ctx: &Ctx,
seen: &mut Instances,
) -> Result<Value, LoadError>Expand description
Loads a module and its import graph: resolves, compiles, and instantiates
modules leaves-first, returning the instance for spec.
seen deduplicates instances and may be used as a cache. ctx handles
item ID allocation.