Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index 5211e082e0aa987eebea4d9985444a9bc22e4d32..f272931b9258a01afe4573718db2861c322fc828 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -368,6 +368,7 @@ |
bool Scope::Analyze(ParseInfo* info) { |
DCHECK(info->literal() != NULL); |
+ DCHECK(info->scope() == NULL); |
DeclarationScope* scope = info->literal()->scope(); |
DeclarationScope* top = scope; |
@@ -395,6 +396,7 @@ |
scope->CheckZones(); |
#endif |
+ info->set_scope(scope); |
return true; |
} |