From 9a117f98785274474e1317e587591f3c385cc91b Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 20 May 2017 20:56:59 +0200 Subject: Fixed bad oldtop value in seterrorobj --- src/ldo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2