From 91924d0b77999c9f1fd700ec60fc31c38f7d27b4 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 16 Mar 2017 15:37:09 +0100 Subject: string.sub --- src/lauxlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lauxlib.js') diff --git a/src/lauxlib.js b/src/lauxlib.js index f77fe5e..3ee04a4 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -54,7 +54,7 @@ const findfield = function(L, objidx, level) { const pushglobalfuncname = function(L, ar) { let top = lapi.lua_gettop(L); ldebug.lua_getinfo(L, 'f', ar); /* push function */ - lapi.lua_getfield(L, lua.LUA_REGISTRYINDEX, lua.LUA_LOADED_TABLE); + lapi.lua_getfield(L, lua.LUA_REGISTRYINDEX, LUA_LOADED_TABLE); if (findfield(L, top + 1, 2)) { let name = lapi.lua_tostring(L, -1); if (name.startsWith("_G.")) { -- cgit v1.2.3-54-g00ecf