Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 9618c9dccd723f9640af71e219bff7aba0323207..e5aa28b6dca158efc8dc5bc34faaa46bcbf9fa79 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); |
} |
} |