From 2db966fcbf757775c842bc66449d7e697826aa1d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 4 Jun 2024 16:40:53 -0300 Subject: Bug: luaL_traceback may need more than 5 stack slots --- ltests.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index c2943a4f..a27cdb07 100644 --- a/ltests.c +++ b/ltests.c @@ -1650,6 +1650,11 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { int nres; status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); } + else if EQ("traceback") { + const char *msg = getstring; + int level = getnum; + luaL_traceback(L1, L1, msg, level); + } else if EQ("return") { int n = getnum; if (L1 != L) { -- cgit v1.2.3-55-g6feb