wasm3 / wasm3-rs

Rust wrapper for Wasm3, the fastest WebAssembly interpreter
MIT License
155 stars 43 forks source link

Allow returning traps from linked closures #30

Closed jonas-schievink closed 3 years ago

jonas-schievink commented 3 years ago

This changes the required signature of user closures to return Result<Ret, Trap> instead of just Ret. This allows raising traps from user functions (currently, WASM execution unconditionally continues after a user function was invoked, which is not ideal).

Michael-F-Bryan commented 3 years ago

@Veykril are you able to publish a new release to crates.io?

Veykril commented 3 years ago

@Michael-F-Bryan published it under version 0.3.0