Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 871913f64da3a1f43ba32d007d52ba4e9b37c809..4b8a8aa98887da423cbb6e4c3f287ea077504ec4 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3230,7 +3230,7 @@ bool JSObject::ReferencesObject(Object* obj) { |
// Check the context extension if any. |
if (context->has_extension()) { |
- return context->extension()->ReferencesObject(obj); |
+ return JSObject::cast(context->extension())->ReferencesObject(obj); |
} |
} |