diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js index 2d52994db..935e8ca31 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js @@ -9,29 +9,29 @@ description: > visited on an Array ---*/ - var testResult = false; +var testResult = false; - function callbackfn(accum, val, idx, obj) { - if (idx === 1 && val === 6.99) { - testResult = true; - } - } +function callbackfn(accum, val, idx, obj) { + if (idx === 1 && val === 6.99) { + testResult = true; + } +} - var arr = [0, , 2]; +var arr = [0, , 2]; - Object.defineProperty(arr, "0", { - get: function () { - Object.defineProperty(Array.prototype, "1", { - get: function () { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + Object.defineProperty(Array.prototype, "1", { + get: function() { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true +}); - arr.reduce(callbackfn, "initialValue"); +arr.reduce(callbackfn, "initialValue"); assert(testResult, 'testResult !== true'); |