Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 30e10e63b57d9a4c02c6b271ce02fead54a8086e..4b8077e100c845a185d2f4c4e2ef8d52cffdb586 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -843,7 +843,7 @@ void Genesis::HookUpGlobalThisBinding(Handle<FixedArray> outdated_contexts) { |
for (int i = 0; i < outdated_contexts->length(); ++i) { |
Context* context = Context::cast(outdated_contexts->get(i)); |
if (context->IsScriptContext()) { |
- ScopeInfo* scope_info = ScopeInfo::cast(context->extension()); |
+ ScopeInfo* scope_info = context->scope_info(); |
int slot = scope_info->ReceiverContextSlotIndex(); |
if (slot >= 0) { |
DCHECK_EQ(slot, Context::MIN_CONTEXT_SLOTS); |