summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-23 16:12:46 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-24 07:41:30 +0100
commit8b9545c6b2a158d44e18dcaa1147cc1206eabfd3 (patch)
treea3df523f4d62a99e4e32deecf0aef76ee5adb22f /src/lvm.js
parente8a12210e0a5a0d86b5bacfd10e673b36d56fb38 (diff)
downloadfengari-8b9545c6b2a158d44e18dcaa1147cc1206eabfd3.tar.gz
fengari-8b9545c6b2a158d44e18dcaa1147cc1206eabfd3.tar.bz2
fengari-8b9545c6b2a158d44e18dcaa1147cc1206eabfd3.zip
table.concat
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 95e8cc4..16a3bd2 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -915,7 +915,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] = rb.luaH_getn();
+ L.stack[ra] = new TValue(CT.LUA_TNUMINT, rb.luaH_getn());
return;
}
case CT.LUA_TSHRSTR: