lua-in-js
lua-in-js copied to clipboard
A Lua to JS transpiler / runtime
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.3.1. Commits e265eae Mark version 7.3.1 50fd1bc Mark version 7.1.0 of acorn-loose ee03be3 Mark version 7.3.0 4adea30 add optional chaining eec9b37 Fix parsing of ambiguous...
Task lib
I can't seem to find any task lib. For example you can't use the function Wait() or task.Wait()
this would be good for scripting lua in games. this would also make it easier for anyone to use
This PR fixes the issue in #27 where `and`/`or` expressions triggered errors when accessing properties of `nil`. The `__lua.and` and `__lua.or` functions are updated to use lazy evaluation, ensuring proper...
```js Lua.createEnv().parse(` print(sthMayNotDefined and sthMayNotDefined.k or "defaultValue") `).exec() // got Uncaught Error: no table or metatable found for given type ``` and in lua: ```lua print(sthMayNotDefined and sthMayNotDefined.k or "defaultValue")...
Please release a UMD build to be able to use lua-in-js in the browser.
Please make example of using `stdin` option when creating a Lua envioronment.
When trying to execute the strings `'▲'` or `'▼'` (html entities ▲ and ▼), luaparse gives an encoding error. lua-in-js should provide the option to change from the default encoding...
I have some global functions such as `get_data_integer`, `get_data_float`,` set_data_float`, etc. Currently, I can add a custom library using` luaEnv.loadLib("myLib", new luainjs.Table({ get_data_integer: () => 12 }))`. However, this requires...