From 0a1c9b34cea8bf740c70d5457ef9e3bd37778607 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 21 Mar 2020 00:55:24 +0800 Subject: fix corner case in `evaluate` & `ie8` (#3751) fixes #3750 --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils.js') diff --git a/lib/utils.js b/lib/utils.js index da82a140..9959305a 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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; } -- cgit v1.2.3