diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js index fda5968c7..142b2878d 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js @@ -9,20 +9,20 @@ description: > property without a get function on an Array ---*/ - function callbackfn(val, idx, obj) { - if (idx === 1) { - return typeof val === "undefined"; - } - return false; - } +function callbackfn(val, idx, obj) { + if (idx === 1) { + return typeof val === "undefined"; + } + return false; +} - var arr = []; +var arr = []; - Object.defineProperty(arr, "1", { - set: function () { }, - configurable: true - }); +Object.defineProperty(arr, "1", { + set: function() {}, + configurable: true +}); - var testResult = arr.map(callbackfn); +var testResult = arr.map(callbackfn); assert.sameValue(testResult[1], true, 'testResult[1]'); |