diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js index 84b64d402..a3c2bf7fa 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js @@ -9,13 +9,17 @@ description: > with leading zeros ---*/ - function callbackfn(val, idx, obj) { - return true; - } +function callbackfn(val, idx, obj) { + return true; +} - var obj = { 1: 11, 2: 9, length: "0002.00" }; +var obj = { + 1: 11, + 2: 9, + length: "0002.00" +}; - 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]'); |