lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.