Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 62d417e17aa37b888c3cc6d584b3ec9923f52293..13acf587a7847866875faa93d47ba3096ac4a8d0 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -837,7 +837,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); |