From f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Fri, 9 Feb 2018 09:09:47 -0800 Subject: Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412) This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34. --- .../Array/prototype/reduce/15.4.4.21-9-c-ii-37.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js') diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js index bb97f5f54..a0a46fa90 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js @@ -10,17 +10,13 @@ description: > ---*/ var global = this; -var accessed = false; + var accessed = false; + function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return prevVal === global; + } -function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return prevVal === global; -} - -var obj = { - 0: 11, - length: 1 -}; + var obj = { 0: 11, length: 1 }; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, this), true, 'Array.prototype.reduce.call(obj, callbackfn, this)'); assert(accessed, 'accessed !== true'); -- cgit v1.2.1