Index: src/scopes.cc |
diff --git a/src/scopes.cc b/src/scopes.cc |
index ffdc1eb910256f03dd034a7107050d10ec241ac8..1818909afc51a74f85a306b39671fc6c4557c0f0 100644 |
--- a/src/scopes.cc |
+++ b/src/scopes.cc |
@@ -379,7 +379,7 @@ Variable* Scope::LocalLookup(Handle<String> name) { |
VariableMode mode; |
Variable::Location location = Variable::CONTEXT; |
InitializationFlag init_flag; |
- int index = scope_info_->ContextSlotIndex(*name, &mode, &init_flag); |
+ int index = ScopeInfo::ContextSlotIndex(scope_info_, name, &mode, &init_flag); |
if (index < 0) { |
// Check parameters. |
index = scope_info_->ParameterIndex(*name); |