Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index ebd9dc5b0e5ac06ea2918efd57060f2c04d90e1f..7d5d27a1da7388d1497178358ccc82db55cf5c96 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -929,7 +929,7 @@ |
MaybeHandle<Object> Accessors::FunctionSetPrototype(Handle<JSFunction> function, |
Handle<Object> prototype) { |
- DCHECK(function->IsConstructor()); |
+ DCHECK(function->should_have_prototype()); |
Isolate* isolate = function->GetIsolate(); |
return SetFunctionPrototype(isolate, function, prototype); |
} |