webassembly-lua
webassembly-lua copied to clipboard
Support for wasi ?
I use wamr to run wasm not in a navigator and I get this:
#00: 0x0000 - setTempRet0
#01: 0x0131 - saveSetjmp
#02: 0x00ed - $f98
#03: 0x0448 - $f220
#04: 0x0012 - $f304
#05: 0x0094 - fib
#00: 0x0000 - setTempRet0
#01: 0x0131 - saveSetjmp
#02: 0x00ed - $f98
#03: 0x0448 - $f220
#04: 0x0012 - $f304
#05: 0x0094 - fib
Exception: failed to call unlinked import function (env, setTempRet0)
with this simple lua program:
function fib(n)
if n <= 1 then
return n
end
return fib(n - 1) + fib(n - 2)
end