From 85e4964ecc198dad6a9b4f3e179acf80aca2da93 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 23 May 2017 16:22:38 +1000 Subject: src/ldo.js: LUA_YIELD comes from defs.TS not lstate --- src/ldo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldo.js b/src/ldo.js index 701a211..4ed8380 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -415,7 +415,7 @@ const unroll = function(L, ud) { while (L.ci !== L.base_ci) { /* something in the stack */ if (!(L.ci.callstatus & lstate.CIST_LUA)) /* C function? */ - finishCcall(L, lstate.LUA_YIELD); /* complete its execution */ + finishCcall(L, TS.LUA_YIELD); /* complete its execution */ else { /* Lua function */ lvm.luaV_finishOp(L); /* finish interrupted instruction */ lvm.luaV_execute(L); /* execute down to higher C 'boundary' */ -- cgit v1.2.3-70-g09d2