Open logaan opened 2 days ago
It might also be worth mentioning that I tried using WASI-Virt. With that I was able to create a wasm file with no imports. But I think the code was still calling clock_time_get
and so I would see a different error, one coming from virt because it wasn't expecting to be called.
I'm having some difficulty running js code compiled to wasm using
jco
inwepl
. I've tried to boil this down to a minimal example.repltest.js
repltest.wit
make-test
When I run
make-test
it appears to correctly create a wasm file. The imports include a bunch of wasi interfaces. The exports are the one function that we expect to see. Unfortunately calling that function complains of an unimplemented import:I reached out to @rylev on the Bytecode Alliance Zulip and was expecting to be told that I needed to use the
.link
or.compose
commands to satisfy therepltest.wasm
imports. I haven't been able to find any examples of how to use.link
or.compose
, and wasn't able to figure it out from reading the wepl source.