| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index c13e55eebf3387e7f60a5309dc85d60265e578d2..2165652f031c783e2e5da3f4a9b07b2d2bf7fb3a 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -108,7 +108,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate, Handle<Object> name,
|
| isolate->factory()->prototype_string(),
|
| SLOPPY),
|
| Object);
|
| - if (!prototype_parent->IsNull() && !prototype_parent->IsSpecObject()) {
|
| + if (!prototype_parent->IsNull() && !prototype_parent->IsJSReceiver()) {
|
| THROW_NEW_ERROR(
|
| isolate, NewTypeError(MessageTemplate::kPrototypeParentNotAnObject,
|
| prototype_parent),
|
|
|