From f12c7cc38ff89defef53f67577f5bbd4c07afc70 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 4 May 2017 11:16:53 +1000 Subject: src/loadlib.js: Fix use of js string instead of lua string --- src/loadlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loadlib.js b/src/loadlib.js index a161d49..c22fee5 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -72,7 +72,7 @@ const lsys_sym = function(L, lib, sym) { ** return registry.LUA_NOENV as a boolean */ const noenv = function(L) { - lua.lua_getfield(L, lua.LUA_REGISTRYINDEX, "LUA_NOENV"); + lua.lua_getfield(L, lua.LUA_REGISTRYINDEX, lua.to_luastring("LUA_NOENV")); let b = lua.lua_toboolean(L, -1); lua.lua_pop(L, 1); /* remove value */ return b; -- cgit v1.2.3-54-g00ecf