| Index: src/runtime/runtime-regexp.cc
|
| diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc
|
| index 6c0c079b801caed940ceaae27e0ea2cccf07b8f9..9a489ecff875464e7e6cb80dab09d3c935f2bd56 100644
|
| --- a/src/runtime/runtime-regexp.cc
|
| +++ b/src/runtime/runtime-regexp.cc
|
| @@ -1298,7 +1298,7 @@ MUST_USE_RESULT MaybeHandle<Object> SpeciesConstructor(
|
| JSObject::GetProperty(ctor, isolate->factory()->species_symbol()),
|
| Object);
|
|
|
| - if (species->IsNull(isolate) || species->IsUndefined(isolate)) {
|
| + if (species->IsNullOrUndefined(isolate)) {
|
| return default_ctor;
|
| }
|
|
|
|
|