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