fix corner case in conditionals (#5233)

fixes #5232
This commit is contained in:
Alex Lam S.L
2021-12-23 14:25:02 +00:00
committed by GitHub
parent 29a1e71705
commit bab416465f
3 changed files with 137 additions and 10 deletions

View File

@@ -548,7 +548,7 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
}));
var before_iterations = testcase;
for (var c = 0; c < max_iterations; ++c) {
if (verbose && pass == 1 && c % 25 == 0) {
if (verbose && c % (pass == 1 ? 25 : 100) == 0) {
log("// reduce test pass " + pass + ", iteration " + c + ": " + testcase.length + " bytes");
}
var CHANGED = false;