lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.62k stars 138 forks source link

Slightly improve error reporting in two cases. #133

Closed alecthomas closed 2 years ago

alecthomas commented 2 years ago

Caveat emptor: I really have no idea if this is the right approach in either case :)

  1. When wasmtime returns a non-Trap error, include that error's string repr in the unhandled case.
  2. When a guest calls spawn with a params array that is not a multiple of 17, return an error.
bkolobara commented 2 years ago

Looks good. Thanks for the contribution @alecthomas!