summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js19
1 files changed, 11 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
index b37a75ea8..5592d22dc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
@@ -9,15 +9,18 @@ description: >
was thrown by step 2
---*/
- var obj = { 0: 11, 1: 12 };
+var obj = {
+ 0: 11,
+ 1: 12
+};
- Object.defineProperty(obj, "length", {
- get: function () {
- throw new Test262Error();
- },
- configurable: true
- });
+Object.defineProperty(obj, "length", {
+ get: function() {
+ throw new Test262Error();
+ },
+ configurable: true
+});
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, undefined);
+ Array.prototype.reduce.call(obj, undefined);
});