summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
index bd6232342..9fb6bc97c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
@@ -9,10 +9,11 @@ description: >
initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});