Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index 05c7d92283b1106f074265cafe5361e8bee8c5f8..06e5f312304fc9e70a5287ba570431d006cc4d0c 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -504,11 +504,8 @@ 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; |
+ RETURN_RESULT_OR_FAILURE( |
+ isolate, Object::ArraySpeciesConstructor(isolate, original_array)); |
} |
} // namespace internal |