diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js index 394268152..b44cba1e3 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js @@ -9,19 +9,19 @@ description: > property on an Array ---*/ -function callbackfn(val, idx, obj) { - return idx === 2 && val === 12; -} + function callbackfn(val, idx, obj) { + return idx === 2 && val === 12; + } -var arr = []; + var arr = []; -Object.defineProperty(arr, "2", { - get: function() { - return 12; - }, - configurable: true -}); -var newArr = arr.filter(callbackfn); + Object.defineProperty(arr, "2", { + get: function () { + return 12; + }, + configurable: true + }); + var newArr = arr.filter(callbackfn); assert.sameValue(newArr.length, 1, 'newArr.length'); assert.sameValue(newArr[0], 12, 'newArr[0]'); |