| Index: src/runtime/runtime-array.cc
|
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
|
| index a24345ec33ee39bbd9753618a711e6108fed4a7b..28e92cbd2baa0b8e977609dec2ec14733c6090a2 100644
|
| --- a/src/runtime/runtime-array.cc
|
| +++ b/src/runtime/runtime-array.cc
|
| @@ -487,5 +487,18 @@ RUNTIME_FUNCTION(Runtime_FastOneByteArrayJoin) {
|
| // to a slow path.
|
| return isolate->heap()->undefined_value();
|
| }
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ArraySpeciesConstructor) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + CONVERT_ARG_HANDLE_CHECKED(Object, original_array, 0);
|
| + Handle<Object> constructor;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, constructor,
|
| + Object::ArraySpeciesConstructor(isolate, original_array));
|
| + return *constructor;
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|