diff options
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js index 2ae6d3461..0a9bca012 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js @@ -9,19 +9,22 @@ description: > was thrown by step 3 ---*/ - var obj = { 0: 11, 1: 12 }; +var obj = { + 0: 11, + 1: 12 +}; - Object.defineProperty(obj, "length", { - get: function () { - return { - toString: function () { - throw new Test262Error(); - } - }; - }, - configurable: true - }); +Object.defineProperty(obj, "length", { + get: function() { + return { + toString: function() { + throw new Test262Error(); + } + }; + }, + configurable: true +}); assert.throws(Test262Error, function() { - Array.prototype.forEach.call(obj, undefined); + Array.prototype.forEach.call(obj, undefined); }); |