Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index b6e8494edccc539c5808c4abf32875a41bfb6ab9..624d7d4382b743cbd530763c66c2133fa0cb080b 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -705,16 +705,13 @@ static bool IterateElements(Isolate* isolate, Handle<JSObject> receiver, |
break; |
} |
case SLOPPY_ARGUMENTS_ELEMENTS: { |
- ElementsAccessor* accessor = receiver->GetElementsAccessor(); |
for (uint32_t index = 0; index < length; index++) { |
HandleScope loop_scope(isolate); |
- if (accessor->HasElement(receiver, index)) { |
- Handle<Object> element; |
- ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
- isolate, element, accessor->Get(receiver, receiver, index), |
- false); |
- visitor->visit(index, element); |
- } |
+ Handle<Object> element; |
+ ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
+ isolate, element, Object::GetElement(isolate, receiver, index), |
+ false); |
+ visitor->visit(index, element); |
} |
break; |
} |