summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 07:42:36 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-22 07:48:59 +0100
commitc1824a99035a231172f3c10ae3ee24a3e6330260 (patch)
tree46136d16c9a7a7f34b3ef2818fff1d32e565b3c3 /src/ldebug.js
parent653f4a07af6506e0b8ef71e8957976b9559f67e4 (diff)
downloadfengari-c1824a99035a231172f3c10ae3ee24a3e6330260.tar.gz
fengari-c1824a99035a231172f3c10ae3ee24a3e6330260.tar.bz2
fengari-c1824a99035a231172f3c10ae3ee24a3e6330260.zip
xpcall calls msgh
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index be122e0..f6d0633 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -485,7 +485,7 @@ const luaG_errormsg = function(L) {
if (L.errfunc !== 0) { /* is there an error handling function? */
let errfunc = L.errfunc;
L.stack[L.top] = L.stack[L.top - 1];
- L.stack[L.top - 1] = errfunc;
+ L.stack[L.top - 1] = L.stack[errfunc];
L.top++;
ldo.luaD_callnoyield(L, L.top - 2, 1);
}