aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-20 20:56:59 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-20 20:56:59 +0200
commit9a117f98785274474e1317e587591f3c385cc91b (patch)
treec11853b315fe080f0d064d285d26f7aad34476d3 /src
parentcb23cec753677033d546564c8a092b7d7637e48b (diff)
downloadfengari-9a117f98785274474e1317e587591f3c385cc91b.tar.gz
fengari-9a117f98785274474e1317e587591f3c385cc91b.tar.bz2
fengari-9a117f98785274474e1317e587591f3c385cc91b.zip
Fixed bad oldtop value in seterrorobj
Diffstat (limited to 'src')
-rw-r--r--src/ldo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 3bbcec6..eb8df06 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -382,7 +382,7 @@ const recover = function(L, status) {
let ci = findpcall(L);
if (ci === null) return 0; /* no recovery point */
/* "finish" luaD_pcall */
- let oldtop = L.stack[ci.extra];
+ let oldtop = ci.extra;
lfunc.luaF_close(L, oldtop);
seterrorobj(L, status, oldtop);
L.ci = ci;