From e04ef562435547e286019fdee46dd0b89b9822df Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Fri, 10 Apr 2015 11:33:29 +0300 Subject: Use the `before` visitor in mangle props (works around a bug in our tree walker which, while cloning nodes, breaks references between labeled statements and break/continue labels) --- lib/propmangle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/propmangle.js b/lib/propmangle.js index f79b4748..46fb7521 100644 --- a/lib/propmangle.js +++ b/lib/propmangle.js @@ -102,7 +102,7 @@ function mangle_properties(ast, options) { })); // step 2: transform the tree, renaming properties - return ast.transform(new TreeTransformer(null, function(node){ + return ast.transform(new TreeTransformer(function(node){ if (node instanceof AST_ObjectKeyVal) { if (should_mangle(node.key)) { node.key = mangle(node.key); -- cgit v1.2.3