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