diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js index b23347737..9f61f72be 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js @@ -9,26 +9,26 @@ description: > property that overrides an inherited data property on an Array ---*/ - 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 arr = []; +var arr = []; - Array.prototype[0] = 11; +Array.prototype[0] = 11; - Object.defineProperty(arr, "0", { - get: function () { - return kValue; - }, - configurable: true - }); +Object.defineProperty(arr, "0", { + get: function() { + return kValue; + }, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[0], true, 'testResult[0]'); |