diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js index e5567884b..59a1e5566 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js @@ -9,13 +9,17 @@ description: > (this object O is correct) ---*/ - var called = 0; - var obj = { 0: 11, 1: 12, length: 2 }; +var called = 0; +var obj = { + 0: 11, + 1: 12, + length: 2 +}; - function callbackfn(val, idx, o) { - called++; - return obj === o; - } +function callbackfn(val, idx, o) { + called++; + return obj === o; +} assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true'); assert.sameValue(called, 2, 'called'); |