summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
index 32f5200bc..b15ff9a1d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
@@ -9,18 +9,18 @@ description: >
an own valueOf method
---*/
-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: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');