[Pkg-javascript-commits] [uglifyjs] 04/06: Use the `before` visitor in mangle props
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.20
in repository uglifyjs.
commit e04ef562435547e286019fdee46dd0b89b9822df
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Fri Apr 10 11:33:29 2015 +0300
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 f79b474..46fb752 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list