speed up IIFE elimination (#1728)
authorAlex Lam S.L <alexlamsl@gmail.com>
Wed, 29 Mar 2017 15:27:35 +0000 (23:27 +0800)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2017 15:27:35 +0000 (23:27 +0800)
commitbeb9659778b04e46556b58bd1d093f3938be9dce
tree03ae37ced6507ba8a8dfe11a0ea9a39e826b7394
parentf1a833a7aa4204411c33c7419e94e8c6c87afe23
speed up IIFE elimination (#1728)

- `side_effects` will clean up inner statements, so checking for an empty function body should suffice
- drop side effects when dropping `return` from statement
lib/compress.js