improve `compress` (#3814)
authorAlex Lam S.L <alexlamsl@gmail.com>
Thu, 23 Apr 2020 22:50:53 +0000 (23:50 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 22:50:53 +0000 (06:50 +0800)
commit3ee13cae02174e565ca40462d7b15c4974265871
tree1a7a9b09da324ff3cb238ac101637696e02cb781
parent99cf3a38c53d4a8e4ac937962df4a0fdc600c070
improve `compress` (#3814)

- avoid identifier overflow through consecutive API calls
- simplify `reduce_vars`
- enhance `unsafe` `evaluate`
lib/compress.js
lib/scope.js
test/compress/reduce_vars.js