You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been running this under NodeJS (more or less unchanged, but with one additional line added to the end of lua5.1.5-v0.9.1.min.js)
module.exports = Lua5_1;
A minimal programme using luaL_openlibs will hang forever.
"use strict";
let Lua5_1 = require("lua5.1.5-v0.9.1.min");
let lua = Lua5_1.C;
let vm = lua.luaL_openlibs();
// Never hits the next line. Saturates an entire core
As a workaround I'm loading the libraries independently
"use strict";
let Lua5_1 = require("lua5.1.5-v0.9.1.min");
let lua = Lua5_1.C;
let vm = lua.lua_open();
// Manually load libs as luaL_openlibs hangs
lua.lua_pushcfunction(vm, Lua5_1.Runtime.addFunction(function(vm) {
lua.luaopen_base(vm);
lua.luaopen_table(vm);
lua.luaopen_io(vm);
lua.luaopen_string(vm);
lua.luaopen_math(vm);
}));
lua.lua_call(vm, 0, 0);
The text was updated successfully, but these errors were encountered:
I've been running this under NodeJS (more or less unchanged, but with one additional line added to the end of lua5.1.5-v0.9.1.min.js)
module.exports = Lua5_1;
A minimal programme using luaL_openlibs will hang forever.
As a workaround I'm loading the libraries independently
The text was updated successfully, but these errors were encountered: