aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcolorhook <colorhook@gmail.com>2013-12-16 15:53:43 +0800
committercolorhook <colorhook@gmail.com>2013-12-16 15:53:43 +0800
commitfa3300f31474af5c566da96ff8db78a2eafa49e3 (patch)
tree6caf3e99c944238f7abd5d3c201dacbe93ca7652 /lib
parentbd0886a2c0b6205d1e7a3c03ef44c093c3317ca7 (diff)
downloadtracifyjs-fa3300f31474af5c566da96ff8db78a2eafa49e3.tar.gz
tracifyjs-fa3300f31474af5c566da96ff8db78a2eafa49e3.zip
bugfix #242
Diffstat (limited to 'lib')
-rw-r--r--lib/scope.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 950128d4..de0bd965 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -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);