diff options
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js')
-rw-r--r-- | test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js index b57354dc5..804282bc1 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js @@ -9,26 +9,28 @@ description: > current position are visited on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1 && val === 6.99) { - return true; - } else { - return false; - } - } - var arr = { length: 2 }; +function callbackfn(val, idx, obj) { + if (idx === 1 && val === 6.99) { + return true; + } else { + return false; + } +} +var arr = { + length: 2 +}; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Object.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Object.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true'); |