Fix prop mangling

Even if not “defined”, do mangle if name exists in the cache.
This commit is contained in:
Mihai Bazon
2015-03-16 10:53:31 +02:00
parent 375c88245a
commit 0c80d21e01

View File

@@ -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) {