diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js index 2b7468f54..d76239982 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js @@ -9,18 +9,21 @@ description: > visible when an exception occurs ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - var accessed = false; +var accessed = false; - Object.defineProperty(obj, "length", { - get: function () { - accessed = true; - return 2; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + accessed = true; + return 2; + }, + configurable: true +}); assert.throws(TypeError, function() { - Array.prototype.reduceRight.call(obj, null); + Array.prototype.reduceRight.call(obj, null); }); assert(accessed, 'accessed !== true'); |