From d72c1d1293487b7e775d0a248f8c9c848b01502c Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Thu, 13 Sep 2012 15:20:57 +0300 Subject: few more optimizations: - do multiple passes in tighten_body if it was changed - transform if (foo) return x; return y; ==> return foo?x:y - don't optimize !0 as true (use best_of after evaluation of constant expr) With hoist_vars off we now beat UglifyJS v1 on jQuery-1.8.1 --- test/compress/conditionals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/compress/conditionals.js') diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index 54c0751d..92e5d61b 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -90,7 +90,7 @@ ifs_4: { ifs_5: { options = { - conditionals: true + if_return: true }; input: { function f() { -- cgit v1.2.3