fix: match exposeHostFunction signature for wasi#241
fix: match exposeHostFunction signature for wasi#241malcolmstill merged 1 commit intomalcolmstill:masterfrom
exposeHostFunction signature for wasi#241Conversation
|
btw, i figured the host context is probably for passing runtime state to the host functions (from my perspective a pointer usize) for their use. i think that should be documented somewhere |
|
@notxorand sorry for the delay and thank you for the fix. The fact that the bug exists speaks to the lack of testing of the wasi stuff.
I agree. Would also be open to giving this a different name (e.g. |
imo, the name is quite clear as is if communicated via a comment |
wasi.zigcurrently use function signature that doesn't match theexposeHostFunctionpattern. that doesn't work