From 7e13c0db4034d2c28e36473a3add915de1813844 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 3 Feb 2018 07:58:43 +0800 Subject: handle `break` & `continue` in `collapse_vars` (#2875) fixes #2873 --- lib/compress.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index 6f9d64f9..993092a0 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -968,6 +968,7 @@ merge(Compressor.prototype, { || node instanceof AST_Call && lhs instanceof AST_PropAccess && lhs.equivalent_to(node.expression) || node instanceof AST_Debugger || node instanceof AST_IterationStatement && !(node instanceof AST_For) + || node instanceof AST_LoopControl || node instanceof AST_Try || node instanceof AST_With || parent instanceof AST_For && node !== parent.init -- cgit v1.2.3