From 4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Fri, 24 Feb 2017 09:17:59 +0100 Subject: Travis --- src/lvm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/lvm.js b/src/lvm.js index 16a3bd2..a0822cc 100644 --- a/src/lvm.js +++ b/src/lvm.js @@ -521,7 +521,6 @@ const luaV_execute = function(L) { for (let aux = 0; nfuncOff + aux < lim; aux++) L.stack[ofuncOff + aux] = L.stack[nfuncOff + aux]; oci.func = nci.func; - oci.funcOff = nci.funcOff; oci.u.l.base = ofuncOff + (nci.u.l.base - nfuncOff); L.top = ofuncOff + (L.top - nfuncOff); oci.top = L.top; @@ -920,7 +919,7 @@ const luaV_objlen = function(L, ra, rb) { } case CT.LUA_TSHRSTR: case CT.LUA_TLNGSTR: - L.stack[ra] = rb.value.length; // TODO: 8-byte clean string + L.stack[ra] = new TValue(CT.LUA_TNUMINT, rb.value.length); // TODO: 8-byte clean string return; default: { tm = ltm.luaT_gettmbyobj(L, rb, ltm.TMS.TM_LEN); -- cgit v1.2.3-70-g09d2