Merge pull request #371 from colorhook/master

bugfix #242
This commit is contained in:
Mihai Bazon
2013-12-16 00:21:07 -08:00

View File

@@ -249,6 +249,11 @@ AST_Scope.DEFMETHOD("next_mangled", function(options){
// we must ensure that the mangled name does not shadow a name
// from some parent scope that is referenced in this or in
// inner scopes.
//bugfix: https://github.com/mishoo/UglifyJS2/issues/242
if(options.except.indexOf(m) !== -1){
continue;
}
for (var i = ext.length; --i >= 0;) {
var sym = ext[i];
var name = sym.mangled_name || (sym.unmangleable(options) && sym.name);