mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
wasm_interp: Print out return value(s), if any
This commit is contained in:
parent
9d77c474d9
commit
dd93e2e46f
1 changed files with 8 additions and 0 deletions
|
@ -77,5 +77,13 @@ fn main() -> io::Result<()> {
|
|||
|
||||
while let Action::Continue = state.execute_next_instruction(&module) {}
|
||||
|
||||
// Print out return value(s), if any
|
||||
|
||||
match state.value_stack.len() {
|
||||
0 => {}
|
||||
1 => println!("{:?}", state.value_stack.pop()),
|
||||
_ => println!("{:?}", &state.value_stack),
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue