diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-12 16:02:01 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-12 16:02:01 -0300 |
| commit | b529aefc531276775f8827052d5594749232cf07 (patch) | |
| tree | 722379af2da40ede4e8c46f1f5edfa0b7d606a58 /ltests.c | |
| parent | d51022bf9e496ae4a7276b600d2755becc7d4323 (diff) | |
| download | lua-b529aefc531276775f8827052d5594749232cf07.tar.gz lua-b529aefc531276775f8827052d5594749232cf07.tar.bz2 lua-b529aefc531276775f8827052d5594749232cf07.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
| @@ -1733,6 +1733,11 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
| 1733 | int nres; | 1733 | int nres; |
| 1734 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); | 1734 | status = lua_resume(lua_tothread(L1, i), L, getnum, &nres); |
| 1735 | } | 1735 | } |
| 1736 | else if EQ("traceback") { | ||
| 1737 | const char *msg = getstring; | ||
| 1738 | int level = getnum; | ||
| 1739 | luaL_traceback(L1, L1, msg, level); | ||
| 1740 | } | ||
| 1736 | else if EQ("return") { | 1741 | else if EQ("return") { |
| 1737 | int n = getnum; | 1742 | int n = getnum; |
| 1738 | if (L1 != L) { | 1743 | if (L1 != L) { |
