Better error messages for vararg-table fields

This commit is contained in:
Roberto I
2026-04-13 14:06:23 -03:00
parent 29cf284089
commit d0bd25d2e7
2 changed files with 4 additions and 1 deletions

View File

@@ -580,7 +580,7 @@ static const char *getobjname (const Proto *p, int lastpc, int reg,
kname(p, k, name);
return isEnv(p, lastpc, i, 1);
}
case OP_GETTABLE: {
case OP_GETTABLE: case OP_GETVARG: {
int k = GETARG_C(i); /* key index */
rname(p, lastpc, k, name);
return isEnv(p, lastpc, i, 0);