diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js index 5b37f8ab4..49392cb8a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js @@ -9,22 +9,25 @@ description: > property on an Array-like object ---*/ - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val !== 11; - } else { - return true; - } - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val !== 11; + } else { + return true; + } +} - var obj = { 10: 10, length: 20 }; +var obj = { + 10: 10, + length: 20 +}; - Object.defineProperty(obj, "0", { - get: function () { - return 11; - }, - configurable: true - }); +Object.defineProperty(obj, "0", { + get: function() { + return 11; + }, + configurable: true +}); assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)'); |