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