summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-22 12:14:13 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-22 12:19:09 +1100
commitb174abb643f03513cb91efb3c05403a08b83a3fe (patch)
tree1a37c7217b6029715cf50a15beabeed2d32681d1
parenta51b824e58c52b2f0d34f55e8e83e5324c8f9fdd (diff)
downloadfengari-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.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldo.js b/src/ldo.js
index efb3d51..f49f92d 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -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 */
}