From c11de17e99fed5181f4be6e7a803aa92edce5459 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Wed, 3 Oct 2012 13:08:03 +0300 Subject: added option for side-effect-free statements, fix test --- test/compress/conditionals.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/compress/conditionals.js') 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; + } +} -- cgit v1.2.3