From: Mihai Bazon Date: Mon, 16 Mar 2015 08:53:31 +0000 (+0200) Subject: Fix prop mangling X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0c80d21e01f7f7f7ec76f80ed02e4935ca9d952a;p=UglifyJS.git Fix prop mangling Even if not “defined”, do mangle if name exists in the cache. --- diff --git a/lib/propmangle.js b/lib/propmangle.js index 41eeffe4..f79b4748 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) {