| Index: src/runtime/runtime-classes.cc
|
| diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
|
| index 46e2fa4ce24aa8245474368055bb58a5f39380a3..e6e7f564da2287661087d3006bf7d9105abab307 100644
|
| --- a/src/runtime/runtime-classes.cc
|
| +++ b/src/runtime/runtime-classes.cc
|
| @@ -88,7 +88,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate,
|
| Handle<Object> prototype_parent;
|
| Handle<Object> constructor_parent;
|
|
|
| - if (super_class->IsTheHole()) {
|
| + if (super_class->IsTheHole(isolate)) {
|
| prototype_parent = isolate->initial_object_prototype();
|
| } else {
|
| if (super_class->IsNull()) {
|
| @@ -128,7 +128,7 @@ static MaybeHandle<Object> DefineClass(Isolate* isolate,
|
| map->SetConstructor(*constructor);
|
| Handle<JSObject> prototype = isolate->factory()->NewJSObjectFromMap(map);
|
|
|
| - if (!super_class->IsTheHole()) {
|
| + if (!super_class->IsTheHole(isolate)) {
|
| // Derived classes, just like builtins, don't create implicit receivers in
|
| // [[construct]]. Instead they just set up new.target and call into the
|
| // constructor. Hence we can reuse the builtins construct stub for derived
|
|
|