summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
index ac8545db7..c1e8c7a11 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
@@ -9,10 +9,14 @@ description: >
number
---*/
- function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+}
- var obj = { 1: 11, 2: 9, length: "0x0002" };
+var obj = {
+ 1: 11,
+ 2: 9,
+ length: "0x0002"
+};
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');