aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-24 13:35:52 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-24 13:35:52 +0200
commit4cdbde1b03edf85c47e4497e496c668c733b6639 (patch)
tree84e4327fc15a8fe7dd6776db78a600a535e5cace /src
parent48b7f1bbe33dee7785fdfa5bb7418191efd02761 (diff)
downloadfengari-4cdbde1b03edf85c47e4497e496c668c733b6639.tar.gz
fengari-4cdbde1b03edf85c47e4497e496c668c733b6639.tar.bz2
fengari-4cdbde1b03edf85c47e4497e496c668c733b6639.zip
Add missing funcOff
Diffstat (limited to 'src')
-rw-r--r--src/ldebug.js1
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);
}
};