summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-16 15:37:09 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-16 15:37:09 +0100
commit91924d0b77999c9f1fd700ec60fc31c38f7d27b4 (patch)
treed70d4d2fd997ab36ce7b2dddd5db3aa9ad8c9b6e /src/lauxlib.js
parent4161f6756dadef6cd5a5c2e1e75804122e892949 (diff)
downloadfengari-91924d0b77999c9f1fd700ec60fc31c38f7d27b4.tar.gz
fengari-91924d0b77999c9f1fd700ec60fc31c38f7d27b4.tar.bz2
fengari-91924d0b77999c9f1fd700ec60fc31c38f7d27b4.zip
string.sub
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js2
1 files changed, 1 insertions, 1 deletions
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.")) {