aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;