alexcrichton opened PR #1926 from remove-hostref
to main
:
This commit removes
HostRef<T>
from the C API which only served the
purpose now of converting each type to awasm_ref_t*
. Our
implementation, however, does not guarantee that you'll get the same
wasm_ref_t*
for each actual underlying item (e.g. if you put a func in
a table and then get the func as an export and from the table then
same
will reportfalse
). Additionally the fate ofwasm_ref_t*
seems somewhat unclear at this point.The change here is to make the
same
and cast functions all abort
saying they're unimplemented. (similar to the host info functions). If
and when we get around to reimplementing these functions we can ensure
they're implemented uniformly and work well for all intended use cases.
peterhuene submitted PR Review.
alexcrichton merged PR #1926.
Last updated: Dec 23 2024 at 12:05 UTC