diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js index 117cbb39b..96927339a 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js @@ -10,22 +10,22 @@ description: > greater than number of parameters) ---*/ -function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === 11; - } else if (idx === 1) { - return val === 12; - } else if (idx === 2) { - return val === 9; - } else { - return false; - } -} + function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === 11; + } else if (idx === 1) { + return val === 12; + } else if (idx === 2) { + return val === 9; + } else { + return false; + } + } -var func = function(a, b) { - return Array.prototype.filter.call(arguments, callbackfn); -}; -var newArr = func(11, 12, 9); + var func = function (a, b) { + return Array.prototype.filter.call(arguments, callbackfn); + }; + var newArr = func(11, 12, 9); assert.sameValue(newArr.length, 3, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); |