From b174abb643f03513cb91efb3c05403a08b83a3fe Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 22 Jan 2018 12:14:13 +1100 Subject: src/ldo.js: Fix use of incorrect module for CIST_YPCALL constant --- src/ldo.js | 4 ++-- 1 file 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 */ } -- cgit v1.2.3-70-g09d2