diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js index 346adb6c9..0ae5970fe 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js @@ -9,19 +9,24 @@ description: > terminate iteration ---*/ - var accessed = false; +var accessed = false; - function callbackfn(val, idx, obj) { - if (idx > 0) { - accessed = true; - } - if (idx === 0) { - throw new Error("Exception occurred in callbackfn"); - } - } +function callbackfn(val, idx, obj) { + if (idx > 0) { + accessed = true; + } + if (idx === 0) { + throw new Error("Exception occurred in callbackfn"); + } +} - var obj = { 0: 11, 4: 10, 10: 8, length: 20 }; +var obj = { + 0: 11, + 4: 10, + 10: 8, + length: 20 +}; assert.throws(Error, function() { - Array.prototype.map.call(obj, callbackfn); + Array.prototype.map.call(obj, callbackfn); }); assert.sameValue(accessed, false, 'accessed'); |