optimize try-catch-finally (#1731)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 30 Mar 2017 04:16:58 +0000 (12:16 +0800)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2017 04:16:58 +0000 (12:16 +0800)
commit7bea38a05dbe357434001fe59dbe06bb659a585f
tree7cc5cd33df52b95b44c31ecbfa49a48af4d0b121
parent0f910ee25c3e644baf043f217b2fe91df8dc67ac
optimize try-catch-finally (#1731)

- eliminate empty blocks
- flatten out if try-block does not throw
lib/compress.js
test/compress/dead-code.js
test/compress/drop-unused.js
test/compress/issue-1673.js
test/compress/screw-ie8.js