diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js index 5e8f0eba5..db7bfa03d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js @@ -10,29 +10,32 @@ description: > Array-like object ---*/ - var kValue = "abc"; +var kValue = "abc"; - function callbackfn(val, idx, obj) { - if (idx === 0) { - return val === kValue; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 0) { + return val === kValue; + } + return false; +} - var proto = { 0: 5, length: 2 }; +var proto = { + 0: 5, + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); +var child = new Con(); - Object.defineProperty(child, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(child, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = Array.prototype.map.call(child, callbackfn); +var testResult = Array.prototype.map.call(child, callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); |