Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 1f25a5d11b7dcd788a6541e41781eb98e826f6b7..548da3946366eb099fb82a7d83fe0f2a29182e94 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5364,13 +5364,13 @@ bool JSObject::ReferencesObject(Object* obj) { |
// Check the context extension (if any) if it can have references. |
if (context->has_extension() && !context->IsCatchContext()) { |
- // With harmony scoping, a JSFunction may have a global context. |
+ // With harmony scoping, a JSFunction may have a script context. |
// TODO(mvstanton): walk into the ScopeInfo. |
if (context->IsScriptContext()) { |
return false; |
} |
- return JSObject::cast(context->extension())->ReferencesObject(obj); |
+ return context->extension_object()->ReferencesObject(obj); |
} |
} |