[Pkg-javascript-commits] [uglifyjs] 55/77: Fix prop mangling
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit 0c80d21e01f7f7f7ec76f80ed02e4935ca9d952a
Author: Mihai Bazon <mihai.bazon at gmail.com>
Date: Mon Mar 16 10:53:31 2015 +0200
Fix prop mangling
Even if not “defined”, do mangle if name exists in the cache.
---
lib/propmangle.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/propmangle.js b/lib/propmangle.js
index 41eeffe..f79b474 100644
--- a/lib/propmangle.js
+++ b/lib/propmangle.js
@@ -145,7 +145,8 @@ function mangle_properties(ast, options) {
}
function should_mangle(name) {
- return names_to_mangle.indexOf(name) >= 0;
+ return cache.props.has(name)
+ || names_to_mangle.indexOf(name) >= 0;
}
function add(name) {
--
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