Let's try this

This commit is contained in:
Arseny Kapoulkine 2022-08-04 15:07:49 -07:00
parent 5522631be4
commit 6d6fd12fee
1 changed files with 2 additions and 1 deletions

View File

@ -295,8 +295,9 @@ end
-- testing syntax limits
local syntaxdepth = if limitedstack then 200 else 1000
local function testrep (init, rep)
local s = "local a; "..init .. string.rep(rep, 300)
local s = "local a; "..init .. string.rep(rep, syntaxdepth)
local a,b = loadstring(s)
assert(not a) -- and string.find(b, "syntax levels"))
end