Wrong error message when using "_ENV" fields

The string "_ENV" is erroneously identified as a variable _ENV,
so that results from a field is classified as a global.
This commit is contained in:
Roberto Ierusalimschy
2025-03-14 15:16:09 -03:00
parent c2dc6e8e94
commit 94d38560c3
3 changed files with 16 additions and 6 deletions

View File

@@ -982,7 +982,7 @@ static int gc_printobj (lua_State *L) {
}
static const char *statenames[] = {
static const char *const statenames[] = {
"propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj",
"sweeptobefnz", "sweepend", "callfin", "pause", ""};