Closed wildbook closed 4 years ago
TYPE_INDEX for the unit type should be c_m3Type_none instead of c_m3Type_void since WASM spec does not define void as a valid type.
There is also a comment about this in wasm3, although it's well hidden: https://github.com/wasm3/wasm3/blob/f75f647c61abc2abdd212ac6f34b026d48818a0f/source/m3_bind.c#L69
This PR fixes this, making it possible to call WASM functions that do not return a value.
TYPE_INDEX for the unit type should be c_m3Type_none instead of c_m3Type_void since WASM spec does not define void as a valid type.
There is also a comment about this in wasm3, although it's well hidden: https://github.com/wasm3/wasm3/blob/f75f647c61abc2abdd212ac6f34b026d48818a0f/source/m3_bind.c#L69
This PR fixes this, making it possible to call WASM functions that do not return a value.