diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js index 7b7b93e5b..c8e77de72 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js @@ -9,21 +9,21 @@ description: > an own valueOf method. ---*/ -function callbackfn(val, idx, obj) { - return true; -} + function callbackfn(val, idx, obj) { + return true; + } -var obj = { - 1: 11, - 2: 9, - length: { - valueOf: function() { - return 2; - } - } -}; + var obj = { + 1: 11, + 2: 9, + length: { + valueOf: 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]'); |