summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
index 610b41291..447771e6e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-11
description: Array.prototype.reduceRight applied to Date object
---*/
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Date;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Date;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');