From afa24856b4b9bc00315b3e47745187d33c471406 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 15 Feb 2018 17:40:02 -0500 Subject: built-ins/Array/*: make all indentation consistent (depth & character) (#1415) --- .../Array/prototype/reduce/15.4.4.21-9-c-i-22.js | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js') diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js index e6a171d69..b906e19e7 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js @@ -9,21 +9,22 @@ description: > accessor property without a get function on an Array ---*/ - var testResult = false; - var initialValue = 0; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (curVal === undefined); - } - } +var testResult = false; +var initialValue = 0; - Object.defineProperty(Array.prototype, "1", { - set: function () { }, - configurable: true - }); +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (curVal === undefined); + } +} - var arr = [0, , 2]; +Object.defineProperty(Array.prototype, "1", { + set: function() {}, + configurable: true +}); - arr.reduce(callbackfn, initialValue); +var arr = [0, , 2]; + +arr.reduce(callbackfn, initialValue); assert(testResult, 'testResult !== true'); -- cgit v1.2.1