diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js index 645621f7e..fc145e234 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js @@ -9,19 +9,14 @@ description: > (thisArg is correct) ---*/ -var thisArg = { - threshold: 10 -}; + var thisArg = { threshold: 10 }; -function callbackfn(val, idx, obj) { - return this === thisArg; -} + function callbackfn(val, idx, obj) { + return this === thisArg; + } -var obj = { - 0: 11, - length: 1 -}; -var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); + var obj = { 0: 11, length: 1 }; + var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 11, 'newArr[0]'); |