summaryrefslogtreecommitdiff
path: root/src/ldo.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/ldo.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/ldo.js')
-rw-r--r--src/ldo.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 57400ab..f7a8d8f 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -89,8 +89,7 @@ const luaD_precall = function(L, off, nresults) {
ci.nresults = nresults;
ci.func = func;
ci.l_base = base;
- ci.top = base + fsize;
- L.top = ci.top;
+ L.top = ci.top = base + fsize;
ci.l_savedpc = p.code;
ci.pcOff = 0;
ci.callstatus = lstate.CIST_LUA;