improve performance (#3020)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 22 Mar 2018 19:43:52 +0000 (03:43 +0800)
committerGitHub <noreply@github.com>
Thu, 22 Mar 2018 19:43:52 +0000 (03:43 +0800)
commit49bfc6b555ca3be3084c0819391eabf2839e6f1b
tree12dda86d5f4feeb1a643e169e5daccdabc35112d
parentd1c6bb8c7c4cc491c4bb52e14ac2127a2496fbb8
improve performance (#3020)

- replace `find_if()` with `all()` wherever possible
- move ESTree-specific logic out of `figure_out_scope()`
lib/compress.js
lib/mozilla-ast.js
lib/parse.js
lib/scope.js
test/mocha/minify.js