diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-2-7.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-2-7.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js index da80f49cb..6853ad8d3 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js @@ -9,23 +9,23 @@ description: > own accessor property ---*/ - function callbackfn(val, idx, obj) { - return val > 10; - } +function callbackfn(val, idx, obj) { + return val > 10; +} - var obj = {}; +var obj = {}; - Object.defineProperty(obj, "length", { - get: function () { - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return 2; + }, + configurable: true +}); - obj[0] = 12; - obj[1] = 11; - obj[2] = 9; +obj[0] = 12; +obj[1] = 11; +obj[2] = 9; - var testResult = Array.prototype.map.call(obj, callbackfn); +var testResult = Array.prototype.map.call(obj, callbackfn); assert.sameValue(testResult.length, 2, 'testResult.length'); |