Index: src/runtime/runtime-classes.cc |
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc |
index 2ce830a710cc47eebca0007d87b70df2b95dbd40..323604ffdec47047d31e14cd4600fa9e0f78e068 100644 |
--- a/src/runtime/runtime-classes.cc |
+++ b/src/runtime/runtime-classes.cc |
@@ -95,7 +95,8 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, |
prototype_parent = isolate->factory()->null_value(); |
} else if (super_class->IsConstructor()) { |
DCHECK(!super_class->IsJSFunction() || |
- !Handle<JSFunction>::cast(super_class)->shared()->is_resumable()); |
+ !IsResumableFunction( |
+ Handle<JSFunction>::cast(super_class)->shared()->kind())); |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate, prototype_parent, |
Runtime::GetObjectProperty(isolate, super_class, |