diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2015-04-10 11:33:29 +0300 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2015-04-10 11:33:29 +0300 |
commit | e04ef562435547e286019fdee46dd0b89b9822df (patch) | |
tree | f7a87aaf3a5959bf6db0c40a5e418113bed175e6 /lib/propmangle.js | |
parent | 5d60484553895a0eac1ac764d1fa7fc683c8499d (diff) | |
download | tracifyjs-e04ef562435547e286019fdee46dd0b89b9822df.tar.gz tracifyjs-e04ef562435547e286019fdee46dd0b89b9822df.zip |
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)
Diffstat (limited to 'lib/propmangle.js')
-rw-r--r-- | lib/propmangle.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |