Function greenwasm_spectest::run_single_command [−][src]
pub fn run_single_command<T: ScriptHandler>(
kind: CommandKind,
handler: &mut T
) -> Result<(), String>
Run handler
on a single wabt script command, catching any panic that
might happen in the process.
Note that T
needs to be exception safe, in the sense that any
panic that happened during a method call should not affect it beyond
a subsequent reset()
call.