diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js index 9a4216a67..07a4d691a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js @@ -9,18 +9,19 @@ description: > order ---*/ - var arr = [0, 1, 2, 3, 4, 5]; - var lastIdx = 0; - var called = 0; - function callbackfn(val, idx, o) { - called++; - if (lastIdx !== idx) { - return false; - } else { - lastIdx++; - return true; - } - } +var arr = [0, 1, 2, 3, 4, 5]; +var lastIdx = 0; +var called = 0; + +function callbackfn(val, idx, o) { + called++; + if (lastIdx !== idx) { + return false; + } else { + lastIdx++; + return true; + } +} assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true'); assert.sameValue(arr.length, called, 'arr.length'); |