diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-22 07:42:36 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-02-22 07:48:59 +0100 |
commit | c1824a99035a231172f3c10ae3ee24a3e6330260 (patch) | |
tree | 46136d16c9a7a7f34b3ef2818fff1d32e565b3c3 /src/ldebug.js | |
parent | 653f4a07af6506e0b8ef71e8957976b9559f67e4 (diff) | |
download | fengari-c1824a99035a231172f3c10ae3ee24a3e6330260.tar.gz fengari-c1824a99035a231172f3c10ae3ee24a3e6330260.tar.bz2 fengari-c1824a99035a231172f3c10ae3ee24a3e6330260.zip |
xpcall calls msgh
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 2 |
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); } |