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
There is still some confusion and flux in the spec about what type-less functions' types are and how they work, see WebAssembly/spec#301 and the discussion there. Once that's sorted out we can figure things out here.
Currently what happens here is that to emit the binary format we need to create actual types for functions that are not listed as having types in the wast, since the binary format only has actual types. On the way back, we don't try to undo that, as we have no way of knowing if the type was created just for the binary format, or was always there.
When I run a small C program through
s2wasm
, it generates amain
function with implicit type:However, when I run this output through
wasm-as
andwasm-dis
, the implicit type has become explicit:Is this behavior intentional? If so, why are we doing this, instead of requiring all non-indirect functions to have implicit or explicit type?
The text was updated successfully, but these errors were encountered: