summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-18 12:08:21 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-18 12:08:21 +0200
commitc31a8135a7b094732f2129b247c982fc58ee52f6 (patch)
tree22c2e0b85ba0c0503ac693825eb3a445a30938e0 /src/lvm.js
parent6be8db07196c407cd321a7b04f5022939c4ffce3 (diff)
downloadfengari-c31a8135a7b094732f2129b247c982fc58ee52f6.tar.gz
fengari-c31a8135a7b094732f2129b247c982fc58ee52f6.tar.bz2
fengari-c31a8135a7b094732f2129b247c982fc58ee52f6.zip
luaH_next and luaH_getn are not Table member functions
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 1d131cf..55daa91 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -978,7 +978,7 @@ const luaV_objlen = function(L, ra, rb) {
case CT.LUA_TTABLE: {
tm = ltm.luaT_gettmbyobj(L, rb, ltm.TMS.TM_LEN);
if (!tm.ttisnil()) break;
- L.stack[ra] = new TValue(CT.LUA_TNUMINT, rb.luaH_getn());
+ L.stack[ra] = new TValue(CT.LUA_TNUMINT, ltable.luaH_getn(rb));
return;
}
case CT.LUA_TSHRSTR: