aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-979.js
diff options
context:
space:
mode:
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>2017-02-18 18:56:18 +0800
committeralexlamsl <alexlamsl@gmail.com>2017-02-18 18:56:18 +0800
commitdd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9 (patch)
tree1aa21b366261d20c0dfa4e5adc7d39f568499784 /test/compress/issue-979.js
parent7f8d72d9d37396f2da05d5d824f74bd414c30119 (diff)
downloadtracifyjs-dd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9.tar.gz
tracifyjs-dd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9.zip
Improve optimizing `function() { if(c){return foo} bar();}`
closes #1437
Diffstat (limited to 'test/compress/issue-979.js')
-rw-r--r--test/compress/issue-979.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compress/issue-979.js b/test/compress/issue-979.js
index bae15db8..7ed5801d 100644
--- a/test/compress/issue-979.js
+++ b/test/compress/issue-979.js
@@ -82,7 +82,7 @@ issue979_test_negated_is_best: {
1!=a||2!=b||foo();
}
function f7() {
- return 1!=a&&2!=b?bar():void foo();
+ if(1!=a&&2!=b)return bar();foo()
}
}
}