Closed kateinoigakukun closed 7 months ago
I guess there are the same problems in other container-like types like result
I've posted a fix in https://github.com/bytecodealliance/jco/pull/429 moving to runtime borrow tracking.
Note that for generating dummy components you can also use the --dummy
option in component embed
:
jco embed --dummy --wit check.wit -o check.wasm
jco new check.wasm --wasi-reactor -o check.component.wasm
Thank you!
Reproducer
The problem here is deactivation code
rsc0[symbolRscHandle] = null;
refersrsc0
, which is defined inside the loop. Thus passing empty list to the function leadsrsc0
to be undefined and raises exception at the deactivation line.