aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ldo.js1
1 files changed, 1 insertions, 0 deletions
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 */