From 287b302acb8d925178e9edb800f0a8d18c7d35f6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 23 Sep 2020 10:18:01 -0300 Subject: Revision of stackless implementation - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit' --- testes/errors.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testes/errors.lua') 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) end s = init .. string.rep(rep, 500) local res, msg = load(s) -- 500 levels not ok - assert(not res and string.find(msg, "too many")) + assert(not res and (string.find(msg, "too many") or + string.find(msg, "overflow"))) end testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment -- cgit v1.2.3-55-g6feb