diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-03 13:08:03 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-03 13:08:03 +0300 |
commit | c11de17e99fed5181f4be6e7a803aa92edce5459 (patch) | |
tree | 5e57b0a278e4105ceb29a081a390b54804022b54 /test | |
parent | e0f5075e45b8914d2543238565f771d4822117ca (diff) | |
download | tracifyjs-c11de17e99fed5181f4be6e7a803aa92edce5459.tar.gz tracifyjs-c11de17e99fed5181f4be6e7a803aa92edce5459.zip |
added option for side-effect-free statements, fix test
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/conditionals.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index bc4624d1..dc2bb671 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -124,3 +124,20 @@ ifs_5: { } } } + +ifs_6: { + options = { + conditionals: true, + comparisons: true + }; + input: { + if (!foo && !bar && !baz && !boo) { + x = 10; + } else { + x = 20; + } + } + expect: { + x = foo || bar || baz || boo ? 20 : 10; + } +} |