diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-05-23 13:51:40 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-05-24 10:15:31 +0200 |
commit | 4350d195b636676ab55439551cc8fae5ee70fad3 (patch) | |
tree | 3cdf85fbdaa06b737108b9be130a8de45d4a9828 /src/ldo.js | |
parent | 214d745949e33f869751214c0997bf02f63c88b4 (diff) | |
download | fengari-4350d195b636676ab55439551cc8fae5ee70fad3.tar.gz fengari-4350d195b636676ab55439551cc8fae5ee70fad3.tar.bz2 fengari-4350d195b636676ab55439551cc8fae5ee70fad3.zip |
Add missing luaD_checkstack in luaD_hook
Diffstat (limited to 'src/ldo.js')
-rw-r--r-- | src/ldo.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -230,6 +230,7 @@ const luaD_hook = function(L, event, line) { ar.event = event; ar.currentline = line; ar.i_ci = ci; + luaD_checkstack(L, defs.LUA_MINSTACK); /* ensure minimum stack size */ ci.top = L.top + defs.LUA_MINSTACK; assert(ci.top <= L.stack_last); L.allowhook = 0; /* cannot call hooks inside a hook */ |