aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-14 15:16:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-03-14 15:16:09 -0300
commit94d38560c3095190fa2c868cbf7bcf39ca444568 (patch)
treeb68480036d7d92dc38f68953e53757f52fdc06a8 /ltests.c
parentc2dc6e8e947ed0c7b18d452592f722f56ee1f96a (diff)
downloadlua-94d38560c3095190fa2c868cbf7bcf39ca444568.tar.gz
lua-94d38560c3095190fa2c868cbf7bcf39ca444568.tar.bz2
lua-94d38560c3095190fa2c868cbf7bcf39ca444568.zip
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.
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index f4855fea..d3509862 100644
--- a/ltests.c
+++ b/ltests.c
@@ -982,7 +982,7 @@ static int gc_printobj (lua_State *L) {
982} 982}
983 983
984 984
985static const char *statenames[] = { 985static const char *const statenames[] = {
986 "propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj", 986 "propagate", "enteratomic", "atomic", "sweepallgc", "sweepfinobj",
987 "sweeptobefnz", "sweepend", "callfin", "pause", ""}; 987 "sweeptobefnz", "sweepend", "callfin", "pause", ""};
988 988