fix corner case in `unused` (#1718)
authorAlex Lam S.L <alexlamsl@gmail.com>
Tue, 28 Mar 2017 17:00:21 +0000 (01:00 +0800)
committerGitHub <noreply@github.com>
Tue, 28 Mar 2017 17:00:21 +0000 (01:00 +0800)
commiteb48a035e7880e73e7fe4f23727775cff365ffbc
tree92d22d7029dc4a1ec6e777c25366070b039d84f2
parent6ab3224c0d724322597f5709e3f382cc913d96bb
fix corner case in `unused` (#1718)

When fixing catch-related issue in #1715, it tries to optimise for duplicate definitions but did not take anonymous functions into account.

Remove such optimisation for now and we can cover this as a more general rule later.
lib/compress.js
test/compress/drop-unused.js