diff options
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); } }; |