1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 esid: sec-array.prototype.findindex
6 Predicate is only called if this.length is > 0.
8 22.1.3.9 Array.prototype.findIndex ( predicate[ , thisArg ] )
12 8. Repeat, while k < len
14 d. Let testResult be ToBoolean(Call(predicate, T, «kValue, k, O»)).
21 var predicate = function() {
26 var result = [].findIndex(predicate);
30 '[].findIndex(predicate) does not call predicate'
34 '[].findIndex(predicate) returned undefined'