diff options
author | daurnimator <quae@daurnimator.com> | 2018-01-22 12:14:13 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-01-22 12:19:09 +1100 |
commit | b174abb643f03513cb91efb3c05403a08b83a3fe (patch) | |
tree | 1a37c7217b6029715cf50a15beabeed2d32681d1 | |
parent | a51b824e58c52b2f0d34f55e8e83e5324c8f9fdd (diff) | |
download | fengari-b174abb643f03513cb91efb3c05403a08b83a3fe.tar.gz fengari-b174abb643f03513cb91efb3c05403a08b83a3fe.tar.bz2 fengari-b174abb643f03513cb91efb3c05403a08b83a3fe.zip |
src/ldo.js: Fix use of incorrect module for CIST_YPCALL constant
-rw-r--r-- | src/ldo.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -431,8 +431,8 @@ const finishCcall = function(L, status) { /* error status can only happen in a protected call */ lua_assert(ci.callstatus & lstate.CIST_YPCALL || status === TS.LUA_YIELD); - if (ci.callstatus & TS.CIST_YPCALL) { /* was inside a pcall? */ - ci.callstatus &= ~TS.CIST_YPCALL; /* continuation is also inside it */ + if (ci.callstatus & lstate.CIST_YPCALL) { /* was inside a pcall? */ + ci.callstatus &= ~lstate.CIST_YPCALL; /* continuation is also inside it */ L.errfunc = ci.c_old_errfunc; /* with the same error function */ } |