Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index e2f6d794a231005be249fd5e175999008fc6e85c..3f05540ef80d6d0b47d1139cec9674c24cfcef11 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; |
} |