Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 35fff00230633704a2aefbf3c99880d6a84e647d..77550e4aceb6c943b88e81a11ad855fac032568c 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -224,13 +224,12 @@ MaybeObject* Accessors::ArraySetLength(Isolate* isolate, |
Handle<JSArray> array_handle = Handle<JSArray>::cast(object); |
- bool has_exception; |
- Handle<Object> uint32_v = |
- Execution::ToUint32(isolate, value, &has_exception); |
- if (has_exception) return Failure::Exception(); |
- Handle<Object> number_v = |
- Execution::ToNumber(isolate, value, &has_exception); |
- if (has_exception) return Failure::Exception(); |
+ Handle<Object> uint32_v; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, uint32_v, Execution::ToUint32(isolate, value)); |
+ Handle<Object> number_v; |
+ ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
+ isolate, number_v, Execution::ToNumber(isolate, value)); |
if (uint32_v->Number() == number_v->Number()) { |
Handle<Object> result; |