Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added wasm32-wasi support #366

Open
martindevans opened this issue Feb 7, 2024 · 3 comments
Open

Added wasm32-wasi support #366

martindevans opened this issue Feb 7, 2024 · 3 comments

Comments

@martindevans
Copy link

It looks like mlua already supports wasm through wasm32-unknown-emscripten, would it be possible to add wasm32-wasi support as well?

@khvzak
Copy link
Member

khvzak commented Feb 8, 2024

I would love to support wasi, but currently the blocker is exception handling
See notable limitations on the wasi-sdk page
c++ exceptions or setjmp/longjmp is required for Lua VM

@martindevans
Copy link
Author

Thanks for the response.

How does wasm32-unknown-emscripten work around the lack of exceptions or setjmp/longjmp?

@khvzak
Copy link
Member

khvzak commented Feb 8, 2024

How does wasm32-unknown-emscripten work around the lack of exceptions or setjmp/longjmp?

Seems it support native wasm exceptions if enabled, or javascript exceptions otherwise.
See setjmp-longjmp and C++ exceptions support pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants