fix propagation of symbol references

This commit is contained in:
Mihai Bazon
2012-10-11 10:28:48 +03:00
parent f322b32e0e
commit 5053a29bc0

View File

@@ -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;
}
});