Fix compression of conditionals
authorMihai Bazon <mihai.bazon@gmail.com>
Mon, 13 Apr 2015 14:29:48 +0000 (17:29 +0300)
committerMihai Bazon <mihai.bazon@gmail.com>
Mon, 13 Apr 2015 14:29:48 +0000 (17:29 +0300)
commit18c63ff3d806439bfb4df613156563ec050e12e9
treef32e310e8bdba11ce51c762f5154767a89dc9b88
parente04ef562435547e286019fdee46dd0b89b9822df
Fix compression of conditionals

Don't move the condition on the right side of an assignment when
the left side may have side effects.

Fix #677
lib/compress.js
test/compress/conditionals.js