diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-07 17:25:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-07 17:25:46 -0300 |
commit | 9e99f3071d07767f9e882c4abf3537f75ce2d161 (patch) | |
tree | a547cbf1772bae35b9c0d842799db0dbf2d27012 /testes/errors.lua | |
parent | 14e416355f83cf0a1b871eedec2c92b86dbe76d6 (diff) | |
parent | 7923dbbf72da303ca1cca17efd24725668992f15 (diff) | |
download | lua-9e99f3071d07767f9e882c4abf3537f75ce2d161.tar.gz lua-9e99f3071d07767f9e882c4abf3537f75ce2d161.tar.bz2 lua-9e99f3071d07767f9e882c4abf3537f75ce2d161.zip |
Merge branch 'master' into nextversion
Diffstat (limited to 'testes/errors.lua')
-rw-r--r-- | testes/errors.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testes/errors.lua b/testes/errors.lua index b777a329..01cfe906 100644 --- a/testes/errors.lua +++ b/testes/errors.lua | |||
@@ -121,6 +121,9 @@ assert(not string.find(doit"aaa={13}; local bbbb=1; aaa[bbbb](3)", "'bbbb'")) | |||
121 | checkmessage("aaa={13}; local bbbb=1; aaa[bbbb](3)", "number") | 121 | checkmessage("aaa={13}; local bbbb=1; aaa[bbbb](3)", "number") |
122 | checkmessage("aaa=(1)..{}", "a table value") | 122 | checkmessage("aaa=(1)..{}", "a table value") |
123 | 123 | ||
124 | -- bug in 5.4.6 | ||
125 | checkmessage("a = {_ENV = {}}; print(a._ENV.x + 1)", "field 'x'") | ||
126 | |||
124 | _G.aaa, _G.bbbb = nil | 127 | _G.aaa, _G.bbbb = nil |
125 | 128 | ||
126 | -- calls | 129 | -- calls |