Index: src/runtime/runtime-forin.cc |
diff --git a/src/runtime/runtime-forin.cc b/src/runtime/runtime-forin.cc |
index 4b558d124f5db765d3c51d9b7a20ee934019224f..1799b339e6b1b5c07406136dd29f6fb1af358ef0 100644 |
--- a/src/runtime/runtime-forin.cc |
+++ b/src/runtime/runtime-forin.cc |
@@ -107,9 +107,7 @@ RUNTIME_FUNCTION(Runtime_ForInEnumerate) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |
CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
- Handle<HeapObject> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, Enumerate(receiver)); |
- return *result; |
+ RETURN_RESULT_OR_FAILURE(isolate, Enumerate(receiver)); |
} |
@@ -159,9 +157,7 @@ RUNTIME_FUNCTION(Runtime_ForInFilter) { |
DCHECK_EQ(2, args.length()); |
CONVERT_ARG_HANDLE_CHECKED(JSReceiver, receiver, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
- Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, Filter(receiver, key)); |
- return *result; |
+ RETURN_RESULT_OR_FAILURE(isolate, Filter(receiver, key)); |
} |
@@ -177,9 +173,7 @@ RUNTIME_FUNCTION(Runtime_ForInNext) { |
if (receiver->map() == *cache_type) { |
return *key; |
} |
- Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, Filter(receiver, key)); |
- return *result; |
+ RETURN_RESULT_OR_FAILURE(isolate, Filter(receiver, key)); |
} |