-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
[WebAssembly] Ship exnref #35696
Comments
I don't understand how references work in WASM and our docs don't help. I'm seeking help in WebAssembly/exception-handling#280 (comment) https://bugzilla.mozilla.org/show_bug.cgi?id=1908375#c5 .
|
@hamishwillee Hi Hamish. The 'exnref' (and exception-handling feature in general) are intended to be used inside wasm functions for making source language (e.g. C++ try/catch/finally) exception handling work on the web. It does this using some new value types and instructions that can be used inside a wasm module. Looking over our existing MDN docs, there is no pre-existing reference on value types/instructions. The closest is this walkthrough on creating a wasm module using the text format (https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format#exploring_fundamentals). I don't think it makes sense to expand the walkthrough with this new types, as that would defeat the purpose of an overview. This new feature really would need to be part of some reference on wasm instructions, which MDN doesn't have. Adding one would be neat, but a ton of work, and also sort of niche (most web developers will get a compiled wasm from a compiler, not hand write one). So I'd think we probably don't need to extend MDN for this wasm feature. |
Thanks @eqrion - very happy to take this as "no further work" for the reasons you have given! |
Acceptance criteria
For folks helping with Firefox related documentation
dev-doc-complete
Related Gecko bugs
https://bugzilla.mozilla.org/show_bug.cgi?id=1908375
Other
The text was updated successfully, but these errors were encountered: