fix propagation of symbol references
This commit is contained in:
parent
f322b32e0e
commit
5053a29bc0
|
|
@ -226,6 +226,7 @@ AST_SymbolRef.DEFMETHOD("reference", function() {
|
||||||
var s = this.scope;
|
var s = this.scope;
|
||||||
while (s) {
|
while (s) {
|
||||||
push_uniq(s.enclosed, def);
|
push_uniq(s.enclosed, def);
|
||||||
|
if (s === def.scope) break;
|
||||||
s = s.parent_scope;
|
s = s.parent_scope;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user