add test for --reduce-test (#3712)

This commit is contained in:
Alex Lam S.L
2020-02-09 23:21:46 +00:00
committed by GitHub
parent df547ffd97
commit f4c77886e7
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
var b = 0;
function f0() {
var expr2 = (0 - 1 - .1 - .1).toString();
for (var key2 in expr2) {
--b;
}
}
var a_1 = f0();
console.log(b);
// output: -19
// minify: -4
// options: {"compress":{"unsafe_math":true},"mangle":false}