aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-04-13 14:06:23 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-04-13 14:06:23 -0300
commitd0bd25d2e7fb393a6d0a73645a099f9c3b9cc0a8 (patch)
tree9ce68f9e031b4041683852af0a3ec28a25d05250 /ldebug.c
parent29cf284089d543408d726440a3f1acaecdf73636 (diff)
downloadlua-d0bd25d2e7fb393a6d0a73645a099f9c3b9cc0a8.tar.gz
lua-d0bd25d2e7fb393a6d0a73645a099f9c3b9cc0a8.tar.bz2
lua-d0bd25d2e7fb393a6d0a73645a099f9c3b9cc0a8.zip
Better error messages for vararg-table fields
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 8df5f5f2..2665ec7b 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -580,7 +580,7 @@ static const char *getobjname (const Proto *p, int lastpc, int reg,
580 kname(p, k, name); 580 kname(p, k, name);
581 return isEnv(p, lastpc, i, 1); 581 return isEnv(p, lastpc, i, 1);
582 } 582 }
583 case OP_GETTABLE: { 583 case OP_GETTABLE: case OP_GETVARG: {
584 int k = GETARG_C(i); /* key index */ 584 int k = GETARG_C(i); /* key index */
585 rname(p, lastpc, k, name); 585 rname(p, lastpc, k, name);
586 return isEnv(p, lastpc, i, 0); 586 return isEnv(p, lastpc, i, 0);