improve --reduce-test (#5763)

This commit is contained in:
Alex Lam S.L
2022-12-13 04:07:15 +02:00
committed by GitHub
parent 797184f587
commit f2b6f1def0
3 changed files with 17 additions and 21 deletions

View File

@@ -1,16 +1,10 @@
// (beautified)
var b = 0;
var expr2 = (0 - 1 - .1 - .1).toString();
for (var key2 in expr2) {
--b;
}
console.log(b);
// output: -19
console.log(expr2);
// output: -1.2000000000000002
//
// minify: -4
// minify: -1.2
//
// options: {
// "compress": {