From 5053a29bc0b723bbf468f50e0434c3eff38600e2 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Thu, 11 Oct 2012 10:28:48 +0300 Subject: [PATCH] fix propagation of symbol references --- lib/scope.js | 1 + 1 file changed, 1 insertion(+) 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; } }); -- 2.34.1