Skip to main content

run_program_bytecode

Function run_program_bytecode 

Source
pub fn run_program_bytecode(
    src: &str,
    fn_name: &str,
    args: Vec<JsValue>,
) -> JsValue
Expand description

Compile a program to bytecode, encode it to binary, decode it, and run a named function. Demonstrates the full bytecode round-trip.