-
When I try to do `document.createElement('div')`, I just get this error in my javascript console:
```uncaught exception TypeError: Illegal invocation
at __call (fengari-web.js:8)
at e (feng…
-
Including here a log of accidentally installing 'fengari' globally (which actually happens to confirm that fengari@0.0.1-rc.1 is installable) and uninstalling it, checking node version then trying to …
-
Easy to do with fengari.
For fun, try on https://fengari.io/:
![image](https://user-images.githubusercontent.com/127971/36291374-9d58f1fc-131e-11e8-8b30-357f7218a100.png)
For those that want to…
-
We'd really like to migrate from Moonshine to Fengari, but we're having trouble figuring out if we can really execute Lua in a fully sandboxed environment, and how to integrate with it in the same way…
Jonty updated
6 years ago
-
ownKeys metamethod should default to using `lua_next`.
https://github.com/fengari-lua/fengari-interop/blob/fa936f5e2654d7d5e7a6a6c0df18af8aa07b4eef/src/js.js#L652
Open question: is this an API bre…
-
With my configuration, I obtain a `nodejs` error.
```
$ lsb_release -d
Description: Ubuntu 17.10
$ nodejs -v
v6.11.4
$ fengari -v
Fengari 0.1.0 Copyright (C) 2017-2018 B. Giannangeli, Daurni…
-
`file:write()` handles only the first argument and transforms it.
```
$ fengari
Fengari 0.1.0 Copyright (C) 2017-2018 B. Giannangeli, Daurnimator
Based on: Lua 5.3.4 Copyright (C) 1994-2017 Lu…
-
# 學哪一種計算機程式語言都好
在學習一套程式語言的過程, 了解各種程式語言各有其適用情境, 應該是個不錯的開始, 無論您從大一就開始學習 C 或 C++ 或 C# 或 Python 或 Java 或 Javascript 或 Ruby 或 swift 或 Lua 或其他計算機程式語言, 其終極目的應該只有一個, 就是逐步認清, 未來將會有更多的事物是**必須**仰賴計算機程式完成, 單單一…
-
This works fine:
```lua
local canvas = document:createElement('canvas')
canvas.width = 400
canvas.height = 400
function canvas:onclick(event)
print(event.offsetX, event.offsetY)
end
docu…
-
Hi!
I plan to use fengari with mithril.js, but I want to use jsx either:
https://mithril.js.org/jsx.html
JSX is a way to represent html nodes in readable way.
For example if jsx is configure…