You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
383: Hook up wasi exit code to wasmer cli r=lachlansneff a=lachlansneff
Test by running:
```
> target/release/wasmer run examples/exit.wat
> echo $?
```
should echo "7".
Fixes (at least the exit code part) of #361.
Co-authored-by: Lachlan Sneff <[email protected]>
Describe the bug
The WASI
proc_exit
function causes an exception to be raised and does not set the requested error code.Steps to reproduce
The following wat code:
Results in the following behavior with wasmer 0.3.0:
Expected behavior
There should be no exception and the result error code should be set to the argument value. In the example above the exit code value should be 7.
Actual behavior
Exception with return value of 1.
The text was updated successfully, but these errors were encountered: