Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index 60cf93f8d35dce48439c70b035d27cc24b2fed95..a2041658a1585d6b2cd4e94a1aa5d8b912c17ec3 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -140,8 +140,11 @@ Handle<Object> Context::Lookup(Handle<String> name, |
} |
VariableMode mode; |
InitializationFlag init_flag; |
- int slot_index = |
- ScopeInfo::ContextSlotIndex(scope_info, name, &mode, &init_flag); |
+ // TODO(sigurds) Figure out whether maybe_assigned_flag should |
+ // be used to compute binding_flags. |
+ MaybeAssignedFlag maybe_assigned_flag; |
+ int slot_index = ScopeInfo::ContextSlotIndex( |
+ scope_info, name, &mode, &init_flag, &maybe_assigned_flag); |
ASSERT(slot_index < 0 || slot_index >= MIN_CONTEXT_SLOTS); |
if (slot_index >= 0) { |
if (FLAG_trace_contexts) { |