aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-24 09:17:59 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-24 10:20:05 +0100
commit4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf (patch)
tree6e872cf184e06820a96597d5fd35ee1ef534afd9 /src
parentae4e53e2e7234a167058199085921a9182e8522a (diff)
downloadfengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.tar.gz
fengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.tar.bz2
fengari-4cbbb77b73f6c1776498bdc70f3ca9d7406d40bf.zip
Travis
Diffstat (limited to 'src')
-rw-r--r--src/lvm.js3
1 files changed, 1 insertions, 2 deletions
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);