Index: src/harmony-array.js |
diff --git a/src/harmony-array.js b/src/harmony-array.js |
index 5df1abde0ff05d60afdb8d54abfc66572333c570..51e2d01b50147ded30436174685b23aca3484ac9 100644 |
--- a/src/harmony-array.js |
+++ b/src/harmony-array.js |
@@ -100,12 +100,10 @@ function InnerArrayFind(predicate, thisArg, array, length) { |
} |
for (var i = 0; i < length; i++) { |
- if (i in array) { |
- var element = array[i]; |
- var newThisArg = needs_wrapper ? $toObject(thisArg) : thisArg; |
- if (%_CallFunction(newThisArg, element, i, array, predicate)) { |
- return element; |
- } |
+ var element = array[i]; |
+ var newThisArg = needs_wrapper ? $toObject(thisArg) : thisArg; |
+ if (%_CallFunction(newThisArg, element, i, array, predicate)) { |
+ return element; |
} |
} |
@@ -135,12 +133,10 @@ function InnerArrayFindIndex(predicate, thisArg, array, length) { |
} |
for (var i = 0; i < length; i++) { |
- if (i in array) { |
- var element = array[i]; |
- var newThisArg = needs_wrapper ? $toObject(thisArg) : thisArg; |
- if (%_CallFunction(newThisArg, element, i, array, predicate)) { |
- return i; |
- } |
+ var element = array[i]; |
+ var newThisArg = needs_wrapper ? $toObject(thisArg) : thisArg; |
+ if (%_CallFunction(newThisArg, element, i, array, predicate)) { |
+ return i; |
} |
} |