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
299 B

var nodelua = require('../../');
var lua = new nodelua.LuaState('simple');
lua.setGlobal('js_value', 500);
lua.doString('print("js_value: " .. js_value)', function(){
lua.doString('js_value = "something new"', function(){
console.log('js_value: ' + lua.getGlobal('js_value'));
});
});