summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
index 683e3d900..867184529 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
@@ -9,14 +9,10 @@ description: >
with leading zeros
---*/
-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: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');