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
The text was updated successfully, but these errors were encountered:
dbezhetskov
changed the title
wasp encodes element section wrong for typed function references proposal
wasp encodes element sections differently than binaryen [typed function references]
Jul 9, 2021
IIRC, they are both allowed and equivalent. Has that changed recently? I suppose it would be best for tools to choose the smaller size, where possible.
The example func_ref_o.wat:
wasp wat2wasm --enable-function-references:
binaryen wasm-as --enable-reference-types:
wasp encodes element section as
vec(expr)
and binaryen encodes it asvec(func_idx)
, according to the https://github.com/WebAssembly/function-references/blob/master/proposals/function-references/Overview.md there is no any evidence thatvec(expr)
should be used.Is it a bug?
The text was updated successfully, but these errors were encountered: