fix corner case in evaluate & ie8 (#3751)

fixes #3750
This commit is contained in:
Alex Lam S.L
2020-03-21 00:55:24 +08:00
committed by GitHub
parent 03e968be62
commit 0a1c9b34ce
4 changed files with 35 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ function makePredicate(words) {
function all(array, predicate) {
for (var i = array.length; --i >= 0;)
if (!predicate(array[i]))
if (!predicate(array[i], i))
return false;
return true;
}