diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-11 10:28:48 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-11 10:28:48 +0300 |
commit | 5053a29bc0b723bbf468f50e0434c3eff38600e2 (patch) | |
tree | e2052600ba871fce019d0e8ef44a3b9864b1cb17 | |
parent | f322b32e0e8df5b60f577da401922f11048f2f87 (diff) | |
download | tracifyjs-5053a29bc0b723bbf468f50e0434c3eff38600e2.tar.gz tracifyjs-5053a29bc0b723bbf468f50e0434c3eff38600e2.zip |
fix propagation of symbol references
-rw-r--r-- | lib/scope.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index cd480841..40237b39 100644 --- 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; } }); |