diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-05-12 12:28:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 19:28:29 +0800 |
commit | 8024f7f7a86023cf68f1f1b2496ec38c8bc200d8 (patch) | |
tree | 62c1625d843d7694dbc175c067ce0ea756bcf116 /lib | |
parent | eb7fa252703c052f81e2ab491d84ba352648e4c9 (diff) | |
download | tracifyjs-8024f7f7a86023cf68f1f1b2496ec38c8bc200d8.tar.gz tracifyjs-8024f7f7a86023cf68f1f1b2496ec38c8bc200d8.zip |
fix corner case in `ie8` (#3890)
fixes #3889
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index e4f75899..c34c7630 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -399,6 +399,10 @@ merge(Compressor.prototype, { } }); }; + if (compressor.option("ie8")) scope.variables.each(function(def) { + var d = def.orig[0].definition(); + if (d !== def) d.fixed = false; + }); } function mark_defun(tw, def) { |