Skip to main content

execute_func

Function execute_func 

Source
pub fn execute_func(
    func: &RegFunc,
    args: &[Value],
) -> Result<Vec<Value>, RuntimeError>
Expand description

Execute a single lowered function with positional arguments.

Functions containing call instructions require module context; use execute_export for those (a bare execute_func call fails with RuntimeErrorKind::UnknownFunction on any call).