aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-13 15:20:57 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-13 15:20:57 +0300
commitd72c1d1293487b7e775d0a248f8c9c848b01502c (patch)
treeb46efbd276d40679f1186bcb9a903a28b5dd6a81 /test
parentf5027ec1fc67d6daeb51714eeddd06350cae00d6 (diff)
downloadtracifyjs-d72c1d1293487b7e775d0a248f8c9c848b01502c.tar.gz
tracifyjs-d72c1d1293487b7e775d0a248f8c9c848b01502c.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/compress/conditionals.js2
1 files changed, 1 insertions, 1 deletions
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() {