From 6d6fd12fee289ef1892857450ba15f49badeee9e Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 4 Aug 2022 15:07:49 -0700 Subject: [PATCH] Let's try this --- tests/conformance/errors.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conformance/errors.lua b/tests/conformance/errors.lua index 7ab7099..b13e7a8 100644 --- a/tests/conformance/errors.lua +++ b/tests/conformance/errors.lua @@ -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