public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f322b32
)
fix propagation of symbol references
author
Mihai Bazon
<mihai@bazon.net>
Thu, 11 Oct 2012 07:28:48 +0000
(10:28 +0300)
committer
Mihai Bazon
<mihai@bazon.net>
Thu, 11 Oct 2012 07:28:48 +0000
(10:28 +0300)
lib/scope.js
patch
|
blob
|
history
diff --git
a/lib/scope.js
b/lib/scope.js
index
cd48084
..
40237b3
100644
(file)
--- a/
lib/scope.js
+++ b/
lib/scope.js
@@
-226,6
+226,7
@@
AST_SymbolRef.DEFMETHOD("reference", function() {
var s = this.scope;
while (s) {
push_uniq(s.enclosed, def);
+ if (s === def.scope) break;
s = s.parent_scope;
}
});