summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
index 7c3dabefe..6e368cfff 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.22-1-7
description: Array.prototype.reduceRight applied to string primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof String;
+ }
assert(Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h"), 'Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") !== true');
assert(accessed, 'accessed !== true');