Smaller recursion limit for NoOpt in the failing test

This commit is contained in:
Vyacheslav Egorov 2023-08-04 21:07:54 +03:00
parent b26eeacfd2
commit 63d9e3e209

View File

@ -1005,6 +1005,10 @@ TEST_CASE_FIXTURE(BuiltinsFixture, "table_unification_infinite_recursion")
{ {
ScopedFastFlag luauTableUnifyRecursionLimit{"LuauTableUnifyRecursionLimit", true}; ScopedFastFlag luauTableUnifyRecursionLimit{"LuauTableUnifyRecursionLimit", true};
#if defined(_NOOPT) || defined(_DEBUG)
ScopedFastInt LuauTypeInferRecursionLimit{"LuauTypeInferRecursionLimit", 100};
#endif
fileResolver.source["game/A"] = R"( fileResolver.source["game/A"] = R"(
local tbl = {} local tbl = {}