Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 99ea25ad7f56433c161c5ba8869122cda42cbe00..dda1dee08b5f12f24f57cb7aee3ac5f72988165c 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -213,7 +213,9 @@ MaybeObject* Accessors::ArraySetLength(Isolate* isolate, |
if (has_exception) return Failure::Exception(); |
if (uint32_v->Number() == number_v->Number()) { |
- return array_handle->SetElementsLength(*uint32_v); |
+ Handle<Object> result = JSArray::SetElementsLength(array_handle, uint32_v); |
+ RETURN_IF_EMPTY_HANDLE(isolate, result); |
+ return *result; |
} |
return isolate->Throw( |
*isolate->factory()->NewRangeError("invalid_array_length", |