diff options
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-3-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/some/15.4.4.17-3-20.js | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js index 9464bc45e..af023ef5e 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js @@ -9,27 +9,27 @@ description: > own valueOf method ---*/ -function callbackfn1(val, idx, obj) { - return val > 10; -} + function callbackfn1(val, idx, obj) { + return val > 10; + } -function callbackfn2(val, idx, obj) { - return val > 11; -} + function callbackfn2(val, idx, obj) { + return val > 11; + } -var valueOfAccessed = false; + var valueOfAccessed = false; -var obj = { - 0: 9, - 1: 11, - 2: 12, - length: { - valueOf: function() { - valueOfAccessed = true; - return 2; - } - } -}; + var obj = { + 0: 9, + 1: 11, + 2: 12, + length: { + valueOf: function () { + valueOfAccessed = true; + return 2; + } + } + }; assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true'); assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)'); |