Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java

Issue 8659041: Fix recursion bug when adding members to native JS objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address offline comment about parens Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/backend/js/analysis/DependencyComputerTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java
diff --git a/compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java b/compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java
index 493c55c9d3edf104e047e3bafd62275bb3c2a397..52884d714f7d833b11eb338642b98b3b61704234 100644
--- a/compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java
+++ b/compiler/java/com/google/dart/compiler/backend/js/analysis/DependencyComputer.java
@@ -96,7 +96,7 @@ class DependencyComputer {
Symbol symbol = scope.getSymbol(name);
if (symbol == null) {
Scope parentScope = scope.getParentScope();
- if (parentScope == null) {
+ if (parentScope == null && (scope != scope.getAstRoot())) {
return findSymbol(scope.getAstRoot(), name);
} else {
return findSymbol(parentScope, name);
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/backend/js/analysis/DependencyComputerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698