diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-02-09 06:54:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 06:54:37 +0800 |
commit | 2088e1c19d97955b5582e08396fca8c7b7dadd83 (patch) | |
tree | 18b818338585fa9f69be2f1eb296273bf80ab508 /lib/compress.js | |
parent | bf1d47180c87462b1605157eb15b31c9db2c1249 (diff) | |
download | tracifyjs-2088e1c19d97955b5582e08396fca8c7b7dadd83.tar.gz tracifyjs-2088e1c19d97955b5582e08396fca8c7b7dadd83.zip |
fix AST corruption due to `collapse_vars` & `inline` (#2899)
fixes #2898
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index e70af436..282ab780 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4379,6 +4379,7 @@ merge(Compressor.prototype, { && !self.pure && !fn.contains_this() && can_inject_symbols()) { + fn._squeezed = true; return make_sequence(self, flatten_fn()).optimize(compressor); } if (compressor.option("side_effects") && all(fn.body, is_empty)) { |