Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index d48f3b2fa349629bc3850c0cea7e8bd7ce582398..99a79d93688091799a237bff03cf9cd214542be2 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1159,7 +1159,7 @@ |
// Use specialized code for getting prototype of functions. |
if (receiver->IsJSFunction() && |
Name::Equals(isolate()->factory()->prototype_string(), lookup->name()) && |
- receiver->IsConstructor() && |
+ Handle<JSFunction>::cast(receiver)->should_have_prototype() && |
!Handle<JSFunction>::cast(receiver) |
->map() |
->has_non_instance_prototype()) { |