Move TODO about proc_exit from wasmtime
This commit is contained in:
@@ -26,6 +26,8 @@ use std::time::SystemTime;
|
||||
use std::{cmp, slice};
|
||||
|
||||
pub fn proc_exit(rval: wasm32::__wasi_exitcode_t) -> () {
|
||||
// TODO: Rather than call std::process::exit here, we should trigger a
|
||||
// stack unwind similar to a trap.
|
||||
std::process::exit(dec_exitcode(rval) as i32);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user