summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-3-8.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-8.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
index 626578477..3677932af 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
@@ -9,11 +9,14 @@ description: >
Infinity)
---*/
- function callbackfn(val, idx, obj) {
- return val < 10;
- }
+function callbackfn(val, idx, obj) {
+ return val < 10;
+}
- var obj = { 0: 9, length: Infinity };
+var obj = {
+ 0: 9,
+ length: Infinity
+};
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});