summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ldo.js1
-rw-r--r--src/lstate.js3
-rw-r--r--src/lvm.js1
3 files changed, 0 insertions, 5 deletions
diff --git a/src/ldo.js b/src/ldo.js
index f7a8d8f..7ee9582 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -114,7 +114,6 @@ const luaD_poscall = function(L, ci, firstResult, nres) {
let res = ci.funcOff;
L.ci = ci.previous;
L.ci.next = null;
- L.ciOff--;
return moveresults(L, firstResult, res, nres, wanted);
};
diff --git a/src/lstate.js b/src/lstate.js
index 73fb310..3865ae5 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -47,7 +47,6 @@ class lua_State {
this.base_ci = new CallInfo(); // Will be populated later
this.top = 0;
this.ci = null;
- this.ciOff = null;
this.stack = [];
this.openupval = null;
this.status = TS.LUA_OK;
@@ -80,7 +79,6 @@ const luaE_extendCI = function(L) {
ci.previous = L.ci;
ci.next = null;
L.ci = ci;
- L.ciOff++;
return ci;
};
@@ -135,7 +133,6 @@ const preinit_thread = function(L, g) {
L.l_G = g;
L.stack = null;
L.ci = null;
- L.nci = 0;
L.errorJmp = null;
L.nCcalls = 0;
L.hook = null;
diff --git a/src/lvm.js b/src/lvm.js
index fb32c91..816452c 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -495,7 +495,6 @@ const luaV_execute = function(L) {
oci.callstatus |= lstate.CIST_TAIL;
oci.next = null;
ci = L.ci = oci;
- L.ciOff--;
assert(L.top === oci.l_base + L.stack[ofuncOff].value.p.maxstacksize);