Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 81fcdec51cd94421cc1d55263b8dc87be1b7d63b..62bcad17cfd7266e2023425e1c6c2cbc59284411 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -306,8 +306,8 @@ bool CallSite::IsEval(Isolate* isolate) { |
bool CallSite::IsConstructor(Isolate* isolate) { |
if (!receiver_->IsJSObject()) return false; |
Handle<Object> constructor = |
- JSObject::GetDataProperty(Handle<JSObject>::cast(receiver_), |
- isolate->factory()->constructor_string()); |
+ JSReceiver::GetDataProperty(Handle<JSObject>::cast(receiver_), |
+ isolate->factory()->constructor_string()); |
return constructor.is_identical_to(fun_); |
} |