mherkender/lua.js — pull request #1 by deltaflux (2012-03-07 16:33:47+00:00)
Title: Updated the load() function in the parser to return the G object that it creates.

While trying to use lua+parser.js I noticed that the load() function created by lua_load() would never actually return the G variable that it creates, meaning that I couldn't access the data. With this change my usage is

var luaLoaderFunction = lua_load(luaScript);
var luaObject = luaLoaderFunction();

Let me know if I've misunderstood how to use lua_load() and this fix is incorrect. Thanks.