fix chained assignment with `unused` (#1540)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 2 Mar 2017 20:45:20 +0000 (04:45 +0800)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 20:45:20 +0000 (04:45 +0800)
commit17b81350d46e369588523b421d4528212f0f3207
treefce7fd03f9bf7e247b0a61f1b8c481be1dc9f810
parent4d63d4f5b30d2b46f3b6ed4cfced277f4f8e428f
fix chained assignment with `unused` (#1540)

When #1450 optimises `a=b=42`, it stops after the first variable even if both are unused.

fixes #1539
lib/compress.js
test/compress/drop-unused.js