Bug: luaL_traceback may need more than 5 stack slots

This commit is contained in:
Roberto Ierusalimschy
2024-06-12 16:02:01 -03:00
parent d51022bf9e
commit b529aefc53
3 changed files with 20 additions and 1 deletions

View File

@@ -1733,6 +1733,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) {