diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-31 23:49:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 23:49:59 +0800 |
commit | 2a4c68be4f3ed60fa638b66a57e7056f7507da83 (patch) | |
tree | 4b81a3ab5a30cbf4a8842ee39109af82f960e2e9 /lib | |
parent | 541e6011af7647074a41c5a82a0a16a3d32bb8c6 (diff) | |
download | tracifyjs-2a4c68be4f3ed60fa638b66a57e7056f7507da83.tar.gz tracifyjs-2a4c68be4f3ed60fa638b66a57e7056f7507da83.zip |
relax `collapse_vars` on `AST_Exit` (#2855)
First introduced in #1862 to stop assignments to migrate beyond `return` or `throw`. Since then `collapse_vars` has been improved to handle various side-effect-related corner cases.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index d0ef5f5d..db6ee8be 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1044,7 +1044,6 @@ merge(Compressor.prototype, { // but are otherwise not safe to scan into or beyond them. var sym; if (node instanceof AST_Call - || node instanceof AST_Exit || node instanceof AST_PropAccess && (side_effects || node.expression.may_throw_on_access(compressor)) || node instanceof AST_SymbolRef |