diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2017-02-18 18:56:18 +0800 |
---|---|---|
committer | alexlamsl <alexlamsl@gmail.com> | 2017-02-18 18:56:18 +0800 |
commit | dd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9 (patch) | |
tree | 1aa21b366261d20c0dfa4e5adc7d39f568499784 /test/compress/issue-979.js | |
parent | 7f8d72d9d37396f2da05d5d824f74bd414c30119 (diff) | |
download | tracifyjs-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.js | 2 |
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() } } } |