You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
I note that the WebAssembly wat specification has been updated [1], specifically to use funcref instead of anyfunc for table declaration. The Rust compiler and the wasm to wat conversion tool wabt [2], that I am using appear to adhere to the newerfuncref spec.
Of course, if I change funcref back to anyfunc then the WebAssemblyStudio IDE will build and run the code.
Just wanted to let you know my experience and I am wondering if/when WebAssemblyStudio will adopt the wat spec as per the link below.
I actually ran into the same issue with funcref vs anyfunc. Link [1] you mention does include some more updates. For example, get_local has officially been replaced with local.get. WebAssemblyStudio uses the old version while my compiler (wasm2wat) uses the newer spec.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I compiled a simple Rust library
The
wat
text representation of this code is as followsPlease note the line
(table (;0;) 1 1 funcref)
Issue
When I build and execute the above wat, I get the following error.
Solution
I note that the WebAssembly
wat
specification has been updated [1], specifically to usefuncref
instead ofanyfunc
for table declaration. The Rust compiler and the wasm to wat conversion toolwabt
[2], that I am using appear to adhere to the newerfuncref
spec.Of course, if I change
funcref
back toanyfunc
then the WebAssemblyStudio IDE will build and run the code.Just wanted to let you know my experience and I am wondering if/when WebAssemblyStudio will adopt the wat spec as per the link below.
Thanks
Tim
[1] WebAssembly/spec#884 (comment)
[2] https://github.com/WebAssembly/wabt
The text was updated successfully, but these errors were encountered: