Closed dylanpoe closed 1 week ago
GOOS=js uses a Go specific syscall interface which is only implemented by the JS code available at https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js This only works in the browser and with Node.JS and is incompatible with any native WASM runtime. For Wasmtime and other native WASM runtimes you have to use GOOS=wasip1 instead and are not allowed to use the syscalls/js
package.
hello, I use golang build a main.wasm files
and build the main.wasm by the code
then use the wasmtime main.wasm, got the error
hot t fix it ?