-
Notifications
You must be signed in to change notification settings - Fork 745
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
Support block-type parameters #6407
Comments
Thankfully once we switch to the new wat parser (and also rewrite the binary parser to use the new Unfortunately having more in-depth support for block parameters than that is not really feasible with the structure of Binaryen IR, but it's plausible that in the future we could use an alternative IR to do late-stage optimizations that could reintroduce them before module writing. |
Moonbit compiler also emits these. Btw I much appreciate that you all added error checking for this situation and now emit a clear error when encountered. I was at first using an old version of wasm-opt that didn't emit that error and I was confused what was wrong, but once I updated I was happy to at least see a clear answer. |
Binaryen does not currently support block / if / loop / try parameters, which were added to the standard a few years ago via the multi-value proposal.
The Hoot Scheme compiler emits blocks with parameters, which works fine in browsers, but we cannot use wasm-opt on our binaries for this reason:
See also #5962 and #5950.
The text was updated successfully, but these errors were encountered: