diff options
Diffstat (limited to 'testes/errors.lua')
| -rw-r--r-- | testes/errors.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testes/errors.lua b/testes/errors.lua index 80d91a92..15401b4f 100644 --- a/testes/errors.lua +++ b/testes/errors.lua | |||
| @@ -137,6 +137,10 @@ checkmessage("aaa=(1)..{}", "a table value") | |||
| 137 | -- bug in 5.4.6 | 137 | -- bug in 5.4.6 |
| 138 | checkmessage("a = {_ENV = {}}; print(a._ENV.x + 1)", "field 'x'") | 138 | checkmessage("a = {_ENV = {}}; print(a._ENV.x + 1)", "field 'x'") |
| 139 | 139 | ||
| 140 | -- a similar bug in 5.4.7, since 5.4.0 | ||
| 141 | checkmessage("print(('_ENV').x + 1)", "field 'x'") | ||
| 142 | |||
| 143 | |||
| 140 | _G.aaa, _G.bbbb = nil | 144 | _G.aaa, _G.bbbb = nil |
| 141 | 145 | ||
| 142 | -- calls | 146 | -- calls |
