Open jzyzxx opened 1 year ago
My tinygo version is 0.30.0
maybe you should remove it -scheduler=none
Hi @jzyzxx, were you able to get this to work? I raised an issue I had when working with the same libs: https://github.com/tinygo-org/tinygo/issues/4583
go code:
`
build params:
tinygo build -o ./wasm.wasm -no-debug -panic=trap -scheduler=none -target wasm .\main.go
Some errors accured in browser:
wasm_exec_tiny.js:223 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'exports') at loadSlice (wasm_exec_tiny.js:223:38) at random_get (wasm_exec_tiny.js:283:30) at arc4random_buf (wasm.wasm:0x58c) at io.ReadFull (wasm.wasm:0x5313) at RSAEncrypt.command_export (wasm.wasm:0x3c71b) at test.html:20:41