pub fn load_module_source(
name: &str,
src: &str,
resolver: &dyn ModuleResolver,
ctx: &Ctx,
seen: &mut Instances,
) -> Result<Value, LoadError>Expand description
load_module for source the caller already has, compiled under the canonical
name it should be known by. Its own imports still go through resolver.
Unlike load_module this ignores any instance seen already holds for
name and replaces it: the caller supplied the source, so it means this text
rather than whatever was loaded under that name before. That is what makes an
explicit reload possible while a plain by-name load stays cached.