Skip to content

Commit 73a50cb

Browse files
committed
Bump iteration loop count
escapeTextForBrowser loops over individual characters on a string and stacks can be quite large to encode.
1 parent 567b90d commit 73a50cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/babel/transform-prevent-infinite-loops.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// This should be reasonable for all loops in the source.
1414
// Note that if the numbers are too large, the tests will take too long to fail
1515
// for this to be useful (each individual test case might hit an infinite loop).
16-
const MAX_SOURCE_ITERATIONS = 1500;
16+
const MAX_SOURCE_ITERATIONS = 5000;
1717
// Code in tests themselves is permitted to run longer.
1818
// For example, in the fuzz tester.
1919
const MAX_TEST_ITERATIONS = 5000;

0 commit comments

Comments
 (0)