wasmer_emscripten

Function emscripten_call_main

source
pub fn emscripten_call_main(
    instance: &mut Instance,
    function_name: &str,
    env: FunctionEnvMut<'_, EmEnv>,
    path: &str,
    args: &[&str],
) -> Result<(), RuntimeError>
Expand description

Call the main function in emscripten, assumes that the emscripten state is set up.

If you don’t want to set it up yourself, consider using run_emscripten_instance.