diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js index d0bc0fb1e..0932eb334 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js @@ -9,27 +9,25 @@ description: > after current position are visited on an Array-like object ---*/ -function callbackfn(val, idx, obj) { - return true; -} -var obj = { - length: 2 -}; + function callbackfn(val, idx, obj) { + return true; + } + var obj = { length: 2 }; -Object.defineProperty(obj, "0", { - get: function() { - Object.defineProperty(Object.prototype, "1", { - get: function() { - return 6.99; - }, - configurable: true - }); - return 0; - }, - configurable: true -}); + Object.defineProperty(obj, "0", { + get: function () { + Object.defineProperty(Object.prototype, "1", { + get: function () { + return 6.99; + }, + configurable: true + }); + return 0; + }, + configurable: true + }); -var newArr = Array.prototype.filter.call(obj, callbackfn); + var newArr = Array.prototype.filter.call(obj, callbackfn); assert.sameValue(newArr.length, 2, 'newArr.length'); assert.sameValue(Array[1], 6.99, 'Array[1]'); |