Lua Bindings For Node.JS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
221 B

var nodelua = require('../../');
var lua = new nodelua.LuaObject();
lua.setGlobal('js_value', 500);
lua.doString('print(js_value)');
lua.doString('js_value = "something new"');
console.dir(lua.getGlobal('js_value'));