Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index b3bf7c14e46c121e6f05a4db551940116517f969..8dbd9c96ab2b1a87ed7e4ad583888d5c923664c5 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -211,8 +211,10 @@ MaybeObject* Accessors::ArraySetLength(Isolate* isolate, |
if (has_exception) return Failure::Exception(); |
if (uint32_v->Number() == number_v->Number()) { |
- Handle<Object> result = JSArray::SetElementsLength(array_handle, uint32_v); |
- RETURN_IF_EMPTY_HANDLE(isolate, result); |
+ Handle<Object> result; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, result, |
+ JSArray::SetElementsLength(array_handle, uint32_v)); |
return *result; |
} |
return isolate->Throw( |