summaryrefslogtreecommitdiff
path: root/src/lundump.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-24 16:44:48 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-27 22:14:54 +1000
commit1428582c2d88b23f12c87921381796d03b388d9f (patch)
treec6f5f2ca9c336d37b38e9d55bb45a6a483c1c37a /src/lundump.js
parent35754b22d6130971a9d0b51177bfcb7c401bb196 (diff)
downloadfengari-1428582c2d88b23f12c87921381796d03b388d9f.tar.gz
fengari-1428582c2d88b23f12c87921381796d03b388d9f.tar.bz2
fengari-1428582c2d88b23f12c87921381796d03b388d9f.zip
Use .setclLvalue
Diffstat (limited to 'src/lundump.js')
-rw-r--r--src/lundump.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lundump.js b/src/lundump.js
index 4931fe8..5686430 100644
--- a/src/lundump.js
+++ b/src/lundump.js
@@ -265,8 +265,8 @@ const luaU_undump = function(L, Z, name) {
let S = new BytecodeParser(L, Z, name);
S.checkHeader();
let cl = lfunc.luaF_newLclosure(L, S.readByte());
+ L.stack[L.top].setclLvalue(cl);
ldo.luaD_inctop(L);
- L.stack[L.top-1] = new lobject.TValue(defs.CT.LUA_TLCL, cl);
cl.p = new lfunc.Proto(L);
S.readFunction(cl.p, null);
assert(cl.nupvalues === cl.p.upvalues.length);