public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd0886a
)
bugfix #242
author
colorhook
<colorhook@gmail.com>
Mon, 16 Dec 2013 07:53:43 +0000
(15:53 +0800)
committer
colorhook
<colorhook@gmail.com>
Mon, 16 Dec 2013 07:53:43 +0000
(15:53 +0800)
lib/scope.js
patch
|
blob
|
history
diff --git
a/lib/scope.js
b/lib/scope.js
index
950128d
..
de0bd96
100644
(file)
--- 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);