Open calvin2021y opened 1 year ago
Thank you for the issue!
I do plan on supporting longjmp
through emcc
's ABI and also wasm's standard exceptions.
And pull requests are more than welcome 😉.
This is enabled by miniwasm using an explicit stack as opposed to the "native" stack. It should be as trivial as keeping an array of jump back locations and stack depths. Things are kinda broken right now, and need to be fixed first.
I'll keep this issue open so that i can reference it in any commit helping exceptions.
There is a lot code require
setjmp
to build into wasm, emcc support it by build intojavascript
backend. (and all mainstream browser supportsetjmp
andexception
). https://webassembly.org/roadmap/I can see FastVM use
goto
every where, maybemicrowasm
can addsetjmp
/longjmp
support base ongoto
?a lot library don't use
exception
but requiresetjmp
, addsetjmp
will allow a lot wasm only run inbrowser/nodejs
work forweb49
.