We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// original code // (beautified) var _calls_ = 10, a = 100, b = 10, c = 0; c = c + 1; typeof (a++ + (typeof a == "function" && --_calls_ >= 0 && a(-2, "c"))) ? (c = c + 1) + { get length() { { var bar_2 = function f0() { { return a++ + (a = a); } { var foo = function f1(foo, b, b_1) { c = 1 + c, (-5 >>> 23..toString() | ({} && -0)) != ((22 || 1) ^ 22 * 38..toString()); c = 1 + c, (c = c + 1, b_1 && (b_1.a = 23..toString() - 0)) << ((c = c + 1, "c") ^ -2 << "foo"); }(this, (c = 1 + c, ((1 | 0) >= (24..toString() !== -5)) % (NaN * -0, 2 | -1))); } }(); } { return a++ + (typeof f2 == "function" && --_calls_ >= 0 && f2(a++ + new function foo_1() { this.var *= ((NaN, {}) > (-2 || "number") ^ "number" >>> Infinity > (foo_1 && (foo_1.foo += 23..toString() & NaN))) * (+(0 | -1) % ((bar_2 && (bar_2.var += "number" && "number")) > (bar_2 = "a" >> "b"))); { c = 1 + c, 5 << 3 << "" + [ , 0 ][1] < ((null | -3) != 25 < "bar"); c = 1 + c, foo_1 && (foo_1.Infinity += (foo_1 += "object" % -4) === null << "b" && (bar_2 && (bar_2[~("c" + -4 << (-1 >>> NaN))] *= ("b" > "number") + (bar_2 && (bar_2.a = "bar" ^ -4))))); c = 1 + c, ([ , 0 ].length === 2, false) === null + 2 && (3 === "function") <= (this ^ 3); } for (var brake14 = 5; function b_2() { } && brake14 > 0; --brake14) { c = c + 1; } }(), a++ + (typeof parseInt != "symbol"))); } }, c: (c = c + 1) + "undefined", "\t": b = a }.length : a++ + (a += a = --b + ((c = c + 1) + (a && a[delete ((undefined << undefined) * (0 > 24..toString()) - (([ , 0 ].length === 2, "") + (a += "c" << 22)))]))); console.log(null, a, b, c, Infinity, NaN, undefined);
// uglified code // (beautified) var n = 10, o = 100, e = 0; e += 1, "function" == typeof ++o && 0 <= --n && o(-2, "c"), e += 1, { get length() { var t = o++ + (o = o); return o++ + ("function" == typeof f2 && 0 <= --n && f2(o++ + new function n() { this.var *= (!1 ^ (n.foo += 0) < 0) * (-1 % ((t && (t.var += "number")) > (t = 0))), e = 1 + (1 + e), n.Infinity += !1, e = 1 + e; for (var o = 5; 0 < o; --o) { e += 1; } }(), o++ + ("symbol" != typeof parseInt))); }, c: (e += 1) + "undefined", "\t": o }.length, console.log(null, o, o, e, 1 / 0, NaN, void 0);
original result: null 103 101 3 Infinity NaN undefined uglified result: null 103 103 3 Infinity NaN undefined minify(options): { "compress": { "passes": 1000000, "unsafe": true }, "toplevel": true }
The text was updated successfully, but these errors were encountered:
fix corner case in collapse_vars
collapse_vars
9871457
fixes mishoo#3628
574b495
fix corner case in collapse_vars (#3629)
9074f05
fixes #3628
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: