From 2088e1c19d97955b5582e08396fca8c7b7dadd83 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 9 Feb 2018 06:54:37 +0800 Subject: fix AST corruption due to `collapse_vars` & `inline` (#2899) fixes #2898 --- lib/compress.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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)) { -- cgit v1.2.3