wasmoon icon indicating copy to clipboard operation
wasmoon copied to clipboard

A real lua 5.4 VM with JS bindings made with webassembly

Results 44 wasmoon issues
Sort by recently updated
recently updated
newest added

Hello! I'm trying to load a compiled Lua bytecode file ([test.luac.zip](https://github.com/ceifa/wasmoon/files/9303204/test.luac.zip)) that was compiled for Panic's Playdate game console. As far as I understand, both the Playdate's Lua implementation and...

Lua version? 5.1? 5.2? 5.3? 5.4?

Hi there, You don't have any build instructions?

The README indicates that this works with Deno but I can't find any way to import it?

```lua local res = sleep(1):next(function () sleep(10):await() return 15 end) print("res", res:await()) ``` Returns ``` Error: Lua Error(ErrorRun/2): cannot resume dead coroutine at Thread.assertOk (/home/tstableford/projects/wasmoon/dist/index.js:409:23) at Thread. (/home/tstableford/projects/wasmoon/dist/index.js:142:22) at Generator.throw...

If a JS API explicitly needs the null value within an object it's not currently possible. Eg ```lua jsFunc({ a = 10, b = nil }) ``` Will generate a...

Lua can access the env through os.getenv(name). Expose a way of setting that environment variable map.

Expose a way to capture stdout and stderr

2.0

Add `CMakeLists.txt` and build method in `package.json`

Hi, was experimenting with this library and noticed some issues w/ the benchmarking code: Per the documentation of [luaL_loadstring](https://www.lua.org/manual/5.4/manual.html#luaL_loadstring): "This function returns the same results as lua\_load", which, if there...