summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/from/mapfn-throws-exception.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/from/mapfn-throws-exception.js')
-rw-r--r--test/built-ins/Array/from/mapfn-throws-exception.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/built-ins/Array/from/mapfn-throws-exception.js b/test/built-ins/Array/from/mapfn-throws-exception.js
index a65512672..a87898bf8 100644
--- a/test/built-ins/Array/from/mapfn-throws-exception.js
+++ b/test/built-ins/Array/from/mapfn-throws-exception.js
@@ -7,9 +7,12 @@ esid: sec-array.from
es6id: 22.1.2.1
---*/
-var array = [ 2, 4, 8, 16, 32, 64, 128 ];
+var array = [2, 4, 8, 16, 32, 64, 128];
+
function mapFn(value, index, obj) {
- throw new Test262Error();
+ throw new Test262Error();
}
-assert.throws(Test262Error, function(){Array.from(array, mapFn);});
+assert.throws(Test262Error, function() {
+ Array.from(array, mapFn);
+});