diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js index 11ba06792..f1ac554ec 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js @@ -9,21 +9,21 @@ description: > an own toString method. ---*/ -function callbackfn(val, idx, obj) { - return true; -} + function callbackfn(val, idx, obj) { + return true; + } -var obj = { - 1: 11, - 2: 9, - length: { - toString: function() { - return '2'; - } - } -}; + var obj = { + 1: 11, + 2: 9, + length: { + toString: function () { + return '2'; + } + } + }; -var newArr = Array.prototype.filter.call(obj, callbackfn); + var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); |