Skip to main content

run_bytecode_with_output

Function run_bytecode_with_output 

Source
pub fn run_bytecode_with_output(
    bytecode: Bytecode,
    instruction_budget: usize,
) -> (Result<String, GcClassifiedRuntimeError>, String)
Expand description

Execute bytecode on a fresh VM while capturing all puts/print output. The output is returned even when execution fails after producing it.