fix corner case in reduce_vars (#3867)

fixes #3866
This commit is contained in:
Alex Lam S.L
2020-05-10 09:35:03 +01:00
committed by GitHub
parent abb8ae02a5
commit 33f3b0c1d9
3 changed files with 28 additions and 5 deletions

View File

@@ -1181,7 +1181,7 @@ for (var round = 1; round <= num_iterations; round++) {
}
}
} else {
uglify_code = uglify_code.error;
uglify_code = uglify_result = uglify_code.error;
ok = sandbox.same_stdout(original_result, uglify_result);
}
if (verbose || (verbose_interval && !(round % INTERVAL_COUNT)) || !ok) log(options);