Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index db16c324ebdc2b120222abaf1494297f54e62fdf..541c2b4b4753bfc7eb1c8ca0b5aea3a7a2219181 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -589,12 +589,7 @@ void Scope::PropagateUsageFlagsToScope(Scope* other) { |
if (calls_eval()) other->RecordEvalCall(); |
} |
- |
-Variable* Scope::LookupLocal(const AstRawString* name) { |
- Variable* result = variables_.Lookup(name); |
- if (result != NULL || scope_info_.is_null()) { |
- return result; |
- } |
+Variable* Scope::LookupInScopeInfo(const AstRawString* name) { |
Handle<String> name_handle = name->string(); |
// The Scope is backed up by ScopeInfo. This means it cannot operate in a |
// heap-independent mode, and all strings must be internalized immediately. So |