From: Mihai Bazon Date: Fri, 14 Feb 2014 11:58:14 +0000 (+0200) Subject: Mangle name of exception when --screw-ie8. Fix #430. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bf30dc30383520015bd265e528325c64e5ebe4ce;p=UglifyJS.git Mangle name of exception when --screw-ie8. Fix #430. The effect of not mangling it was visible only with --screw-ie8 (otherwise the names would be mangled exactly because they leaked into the parent scope). --- diff --git a/lib/scope.js b/lib/scope.js index cce0f3c5..1ce17fa6 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -365,6 +365,10 @@ AST_Toplevel.DEFMETHOD("mangle_names", function(options){ node.mangled_name = name; return true; } + if (options.screw_ie8 && node instanceof AST_SymbolCatch) { + to_mangle.push(node.definition()); + return; + } }); this.walk(tw); to_mangle.forEach(function(def){ def.mangle(options) });