From 4350d195b636676ab55439551cc8fae5ee70fad3 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 23 May 2017 13:51:40 +0200 Subject: Add missing luaD_checkstack in luaD_hook --- src/ldo.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ldo.js b/src/ldo.js index ab3f197..4c198ee 100644 --- a/src/ldo.js +++ b/src/ldo.js @@ -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 */ -- cgit v1.2.3-70-g09d2