Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f1dd4d7efe96b236d1536c0611969bf3c1fa3de4..21c40aaa59d6854aa5d2de5d2c7609877c5101fb 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12203,6 +12203,7 @@ bool CanSubclassHaveInobjectProperties(InstanceType instance_type) { |
void JSFunction::EnsureHasInitialMap(Handle<JSFunction> function) { |
+ DCHECK(function->IsConstructor() || function->shared()->is_generator()); |
if (function->has_initial_map()) return; |
Isolate* isolate = function->GetIsolate(); |