Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d5cbcda37e2f003a72ba76b2bed9dc6b5986e487..3e88c961eef0756bc54e58bbae3d0a2076beebd2 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10719,7 +10719,7 @@ void JSFunction::SetInstancePrototype(Handle<JSFunction> function, |
void JSFunction::SetPrototype(Handle<JSFunction> function, |
Handle<Object> value) { |
- DCHECK(function->should_have_prototype()); |
+ DCHECK(function->IsConstructor()); |
Handle<Object> construct_prototype = value; |
// If the value is not a JSReceiver, store the value in the map's |