diff options
author | Benoit Giannangeli <giann@users.noreply.github.com> | 2017-05-22 20:06:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-22 20:06:57 +0200 |
commit | e3bdd1fea3665df28de25ed76f6399faf957179d (patch) | |
tree | 6884757b43064fa7163b54b86aa4561d185b5ca2 /src/lundump.js | |
parent | 25e2110a5eac0a2e6c7b4d502ffbd53fc61af301 (diff) | |
parent | 8a439e5563f12335e3d35dd63b4f8cbcc25a9bd8 (diff) | |
download | fengari-e3bdd1fea3665df28de25ed76f6399faf957179d.tar.gz fengari-e3bdd1fea3665df28de25ed76f6399faf957179d.tar.bz2 fengari-e3bdd1fea3665df28de25ed76f6399faf957179d.zip |
Merge pull request #63 from daurnimator/fix-skipped-tests
Investigated + fixed some skipped tests
Diffstat (limited to 'src/lundump.js')
-rw-r--r-- | src/lundump.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lundump.js b/src/lundump.js index 1891451..4931fe8 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -265,7 +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++] = new lobject.TValue(defs.CT.LUA_TLCL, 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); |