[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] lua5.1.js
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 16 Sep 2013 11:02:02 +0400
On Mon, Sep 16, 2013 at 4:45 AM, Vadim Peretokin <vperetokin@gmail.com> wrote:
> Is this for the Lua C api only, or does it allow running plain Lua script in
> the browser?
Not sure I understand the question.
Example does just that, no?
if (C.luaL_dostring(L, "ALERT('Hello, world')") != 0)
Or do you mean <script type="text/lua">, as in lua.vm.js?
It is rather trivial to do:
https://github.com/kripken/lua.vm.js/blob/master/lua.js#L21
In the TODO list anyway, pull requests are welcome.
Best,
Alexander.