Closed
Description
Hi,
I'm trying to port WASA to refcounted assemblyscript.
Unfortunately, asc
doesn't seem to produce a valid module:
[wasm-validator error in function $assembly/wasa/IO.readString] unexpected false: local.set index must be small enough, on
[i32] (local.tee $13
[i32] (call $~lib/rt/pure/__retain
[i32] (call $~lib/rt/__allocArray
[i32] (i32.const 0)
[i32] (i32.const 0)
[i32] (i32.const 4)
[i32] (i32.const 424)
)
)
)
[wasm-validator error in function $assembly/wasa/IO.readString] 1080060731 != 1: local.set type must match function, on
[i32] (local.tee $13
[i32] (call $~lib/rt/pure/__retain
[i32] (call $~lib/rt/__allocArray
[i32] (i32.const 0)
[i32] (i32.const 0)
[i32] (i32.const 4)
[i32] (i32.const 424)
)
)
)
The code is in the dev
branch of WASA.
There is something in IO.readString()
that it doesn't like, but I couldn't figure out what.