From 4cdbde1b03edf85c47e4497e496c668c733b6639 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Wed, 24 May 2017 13:35:52 +0200 Subject: Add missing funcOff --- src/ldebug.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ldebug.js b/src/ldebug.js index ba1e6e3..afbb556 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -639,6 +639,7 @@ const luaG_traceexec = function(L) { ci.l_savedpc--; /* undo increment (resume will increment it again) */ ci.callstatus |= lstate.CIST_HOOKYIELD; /* mark that it yielded */ ci.func = L.stack[L.top - 1]; /* protect stack below results */ + ci.funcOff = L.top - 1; ldo.luaD_throw(L, TS.LUA_YIELD); } }; -- cgit v1.2.3-70-g09d2