wasmerio / wasmer-js

Monorepo for Javascript WebAssembly packages by Wasmer

Home Page:https://wasmerio.github.io/wasmer-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wasi.start() doesn't return a non-zero exit code

Michael-F-Bryan opened this issue · comments

While working on wit-pack, I noticed that the wasi.start() function never seems to return a non-zero exit code on failure. Instead, it looks like the user is given a generic error.

I'm guessing that we never hit this branch when we downcast err.downcast::<WasiError>().

Fixed in #310.