There's been a few changes to the reference types proposal which I don't believe have been reflected into the C API. Notably I think a few things need to be added to fully support the reference types proposal:
wasm_val_t should be extended with a wasm_func_t or wasm_funcref_t variant in its union
- Construction of a host-defined
externref value should be supported, either through construction of wasm_ref_t directly or through a new type wasm_externref_t.
- Given the lack of subtyping in reference types I'm not sure if the various conversion functions between
wasm_ref_t and other types should still be supported (or if types like wasm_module_t should be convert-ible to references)
There's been a few changes to the reference types proposal which I don't believe have been reflected into the C API. Notably I think a few things need to be added to fully support the reference types proposal:
wasm_val_tshould be extended with awasm_func_torwasm_funcref_tvariant in its unionexternrefvalue should be supported, either through construction ofwasm_ref_tdirectly or through a new typewasm_externref_t.wasm_ref_tand other types should still be supported (or if types likewasm_module_tshould be convert-ible to references)