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
I am trying to use call_ref from function references. According to the linked documentation, I thought that I should include a type index when using call_ref instruction. But wat2wasm does not build with a type index passed.
I tried with this example, using latest wat2wasm (version 1.0.34).
When I change (call_ref $f_type) to only (call_ref), it builds using wat2wasm. However that wasm binary does not run using node --experimental-wasm-typed_funcref, it throws [CompileError: WebAssembly.instantiate(): Compiling function #2 failed: invalid signature index: 11 @+64], but this issue is mainly how I should use call_refwith wat2wasm.
The text was updated successfully, but these errors were encountered:
WABT doesn't support the function-references (or GC) proposals -- we don't even have it in our feature matrix yet (https://github.com/WebAssembly/wabt/). :-(
You will probably have better luck with wasm-tools parse or binaryen's wasm-as.
I am trying to use
call_ref
from function references. According to the linked documentation, I thought that I should include a type index when usingcall_ref
instruction. Butwat2wasm
does not build with a type index passed.I tried with this example, using latest
wat2wasm
(version 1.0.34).When I change
(call_ref $f_type)
to only(call_ref)
, it builds using wat2wasm. However that wasm binary does not run usingnode --experimental-wasm-typed_funcref
, it throws[CompileError: WebAssembly.instantiate(): Compiling function #2 failed: invalid signature index: 11 @+64]
, but this issue is mainly how I should usecall_ref
withwat2wasm
.The text was updated successfully, but these errors were encountered: