aboutsummaryrefslogtreecommitdiff
path: root/src/loadlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-04 11:16:53 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-04 11:16:53 +1000
commitf12c7cc38ff89defef53f67577f5bbd4c07afc70 (patch)
tree761dde29ae76056ae46953b37193350fb0c6d8a1 /src/loadlib.js
parent6258925c955a31ac0c520ffabdbaf138910e48c1 (diff)
downloadfengari-f12c7cc38ff89defef53f67577f5bbd4c07afc70.tar.gz
fengari-f12c7cc38ff89defef53f67577f5bbd4c07afc70.tar.bz2
fengari-f12c7cc38ff89defef53f67577f5bbd4c07afc70.zip
src/loadlib.js: Fix use of js string instead of lua string
Diffstat (limited to 'src/loadlib.js')
-rw-r--r--src/loadlib.js2
1 files changed, 1 insertions, 1 deletions
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;