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

[GR-57593] Implement Exception Handling Proposal for WebAssembly #9764

Open
fniephaus opened this issue Sep 26, 2024 · 0 comments
Open

[GR-57593] Implement Exception Handling Proposal for WebAssembly #9764

fniephaus opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels

Comments

@fniephaus
Copy link
Member

TL;DR

We plan to implement the Exception Handling proposal in GraalWasm.

Details

This proposal lets WebAssembly modules throw and catch exceptions.
WebAssembly modules can define exception types, called tags, which have typed arguments (fields of the exception record). Code in WebAssembly will be able to throw an exception having a given tag and given arguments. Such an exception can then be caught in the embedder, be it Java or another Graal Language like JavaScript. Once caught, the tag and arguments of the exception can be retrieved and inspected. WebAssemlby code will also be able to catch exceptions, be it exceptions that originate in WebAssembly, in Java, or other Graal Languages.

More details at https://github.com/WebAssembly/exception-handling/blob/main/proposals/exception-handling/Exceptions.md

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

No branches or pull requests

2 participants