diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 16:40:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 16:40:53 -0300 |
commit | 2db966fcbf757775c842bc66449d7e697826aa1d (patch) | |
tree | 8eba3e6289af6a2038802754de4197931c5d3ec3 /ltests.c | |
parent | ae9a0cbbb446499e759acae47664d1d136d7ba90 (diff) | |
download | lua-2db966fcbf757775c842bc66449d7e697826aa1d.tar.gz lua-2db966fcbf757775c842bc66449d7e697826aa1d.tar.bz2 lua-2db966fcbf757775c842bc66449d7e697826aa1d.zip |
Bug: luaL_traceback may need more than 5 stack slots
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1650,6 +1650,11 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1650 | int nres; | 1650 | int nres; |
1651 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); | 1651 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); |
1652 | } | 1652 | } |
1653 | else if EQ("traceback") { | ||
1654 | const char *msg = getstring; | ||
1655 | int level = getnum; | ||
1656 | luaL_traceback(L1, L1, msg, level); | ||
1657 | } | ||
1653 | else if EQ("return") { | 1658 | else if EQ("return") { |
1654 | int n = getnum; | 1659 | int n = getnum; |
1655 | if (L1 != L) { | 1660 | if (L1 != L) { |