| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 36d6ea870c493945536ed49df2ee99917782442b..df51fcde0f6f68909a39408cb596e4b10ee1e56c 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -1523,7 +1523,6 @@ bool Object::SameValueZero(Object* other) {
|
|
|
| MaybeHandle<Object> Object::ArraySpeciesConstructor(
|
| Isolate* isolate, Handle<Object> original_array) {
|
| - Handle<Context> native_context = isolate->native_context();
|
| Handle<Object> default_species = isolate->array_function();
|
| if (!FLAG_harmony_species) {
|
| return default_species;
|
| @@ -1548,7 +1547,7 @@ MaybeHandle<Object> Object::ArraySpeciesConstructor(
|
| isolate, constructor_context,
|
| JSReceiver::GetFunctionRealm(Handle<JSReceiver>::cast(constructor)),
|
| Object);
|
| - if (*constructor_context != *native_context &&
|
| + if (*constructor_context != *isolate->native_context() &&
|
| *constructor == constructor_context->array_function()) {
|
| constructor = isolate->factory()->undefined_value();
|
| }
|
|
|