Skip to content

Commit

Permalink
Bump iteration loop count
Browse files Browse the repository at this point in the history
escapeTextForBrowser loops over individual characters on a string and
stacks can be quite large to encode.
  • Loading branch information
sebmarkbage committed Mar 29, 2024
1 parent 567b90d commit 73a50cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/babel/transform-prevent-infinite-loops.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// This should be reasonable for all loops in the source.
// Note that if the numbers are too large, the tests will take too long to fail
// for this to be useful (each individual test case might hit an infinite loop).
const MAX_SOURCE_ITERATIONS = 1500;
const MAX_SOURCE_ITERATIONS = 5000;
// Code in tests themselves is permitted to run longer.
// For example, in the fuzz tester.
const MAX_TEST_ITERATIONS = 5000;
Expand Down

0 comments on commit 73a50cb

Please sign in to comment.