Let's try this
This commit is contained in:
parent
5522631be4
commit
6d6fd12fee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue