aboutsummaryrefslogtreecommitdiff
path: root/testes/errors.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-09-23 10:18:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-12 12:29:09 -0300
commit287b302acb8d925178e9edb800f0a8d18c7d35f6 (patch)
treebd662481ea995dc8c050324d553146e870434d93 /testes/errors.lua
parent5d8ce05b3f6fad79e37ed21c1076e47a322472c6 (diff)
downloadlua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.gz
lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.bz2
lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.zip
Revision of stackless implementation
- more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit'
Diffstat (limited to 'testes/errors.lua')
-rw-r--r--testes/errors.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/testes/errors.lua b/testes/errors.lua
index 88918df7..f975b3dd 100644
--- a/testes/errors.lua
+++ b/testes/errors.lua
@@ -532,7 +532,8 @@ local function testrep (init, rep, close, repc, finalresult)
532 end 532 end
533 s = init .. string.rep(rep, 500) 533 s = init .. string.rep(rep, 500)
534 local res, msg = load(s) -- 500 levels not ok 534 local res, msg = load(s) -- 500 levels not ok
535 assert(not res and string.find(msg, "too many")) 535 assert(not res and (string.find(msg, "too many") or
536 string.find(msg, "overflow")))
536end 537end
537 538
538testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment 539testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment