Skip to main content

instantiate

Function instantiate 

Source
pub fn instantiate(
    chunk: ChunkId,
    frame: &[Value],
    ctx: &Ctx,
) -> Result<Value, Raised>
Expand description

Instantiates a compiled module, the top module of chunk (see Ctx::compile_module), giving it its identity.

frame provides outer values against the module’s frame names. A length mismatch raises .module_arity.