Skip to main content

run_bytecode

Function run_bytecode 

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

Execute bytecode on a fresh VM and render the final popped value the way the REPL does. instruction_budget is usize::MAX for normal runs; the CLI’s --max-instructions threads a finite budget through here.