| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index 37a5122cec3b6c0c6a2c5d45bc5768498340e930..303122fc3967c5f3abfc9a088885c958457aac98 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -91,7 +91,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate,
|
| if (super_class->IsTheHole(isolate)) {
|
| prototype_parent = isolate->initial_object_prototype();
|
| } else {
|
| - if (super_class->IsNull()) {
|
| + if (super_class->IsNull(isolate)) {
|
| prototype_parent = isolate->factory()->null_value();
|
| } else if (super_class->IsConstructor()) {
|
| DCHECK(!super_class->IsJSFunction() ||
|
| @@ -101,7 +101,8 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate,
|
| Runtime::GetObjectProperty(isolate, super_class,
|
| isolate->factory()->prototype_string()),
|
| Object);
|
| - if (!prototype_parent->IsNull() && !prototype_parent->IsJSReceiver()) {
|
| + if (!prototype_parent->IsNull(isolate) &&
|
| + !prototype_parent->IsJSReceiver()) {
|
| THROW_NEW_ERROR(
|
| isolate, NewTypeError(MessageTemplate::kPrototypeParentNotAnObject,
|
| prototype_parent),
|
|
|