summaryrefslogtreecommitdiff
path: root/src/lvm.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 15:25:49 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 16:54:59 +1000
commit6e0acf1e915dc1c12363884874ab5d3c596ca486 (patch)
treeff224dfd99c5486ecc7c06892a1c9180385a8947 /src/lvm.js
parent043d0eede8dc8e19ae62b8426c6e0709e39df945 (diff)
downloadfengari-6e0acf1e915dc1c12363884874ab5d3c596ca486.tar.gz
fengari-6e0acf1e915dc1c12363884874ab5d3c596ca486.tar.bz2
fengari-6e0acf1e915dc1c12363884874ab5d3c596ca486.zip
src/{ldo,lvm}.js: Copy style from lua C code
Diffstat (limited to 'src/lvm.js')
-rw-r--r--src/lvm.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 7483738..fb32c91 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -489,14 +489,12 @@ const luaV_execute = function(L) {
L.stack[ofuncOff + aux] = L.stack[nfuncOff + aux];
oci.func = nci.func;
oci.l_base = ofuncOff + (nci.l_base - nfuncOff);
- L.top = ofuncOff + (L.top - nfuncOff);
- oci.top = L.top;
+ oci.top = L.top = ofuncOff + (L.top - nfuncOff);
oci.l_savedpc = nci.l_savedpc;
oci.pcOff = nci.pcOff;
oci.callstatus |= lstate.CIST_TAIL;
oci.next = null;
- L.ci = oci;
- ci = L.ci;
+ ci = L.ci = oci;
L.ciOff--;
assert(L.top === oci.l_base + L.stack[ofuncOff].value.p.maxstacksize);