diff options
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-4-11.js')
-rw-r--r-- | test/built-ins/Array/prototype/some/15.4.4.17-4-11.js | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js index 0eec6e6c3..d0c7e6a74 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-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.some.call(obj, undefined); + Array.prototype.some.call(obj, undefined); }); |