diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-05-28 15:46:49 -0300 |
| commit | b293ae0577bebaca7169cb4f041b800641d5e2c4 (patch) | |
| tree | bda609d72277433bda3537ac50ed8fecf9a73898 /testes/locals.lua | |
| parent | d9f40e3f6fb61650240c47d548bee69b24b07859 (diff) | |
| download | lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.gz lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.tar.bz2 lua-b293ae0577bebaca7169cb4f041b800641d5e2c4.zip | |
Details
- new error message for "attempt to assign to const variable"
- note in the manual about compatibility options
- comments
- small changes in 'read_line' and 'pushstr'
Diffstat (limited to 'testes/locals.lua')
| -rw-r--r-- | testes/locals.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/testes/locals.lua b/testes/locals.lua index c176f506..e59ab95a 100644 --- a/testes/locals.lua +++ b/testes/locals.lua | |||
| @@ -452,7 +452,6 @@ do | |||
| 452 | end) | 452 | end) |
| 453 | assert(co() == 100) | 453 | assert(co() == 100) |
| 454 | local st, msg = pcall(co) | 454 | local st, msg = pcall(co) |
| 455 | print(msg) | ||
| 456 | -- should get last error raised | 455 | -- should get last error raised |
| 457 | assert(not st and string.find(msg, "%w+%.%w+:%d+: XXX")) | 456 | assert(not st and string.find(msg, "%w+%.%w+:%d+: XXX")) |
| 458 | end | 457 | end |
