summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
index 9d6b8f83c..822d57425 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-13
description: Array.prototype.reduceRight applied to the JSON object
---*/
- var accessed = false;
+var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return ('[object JSON]' === Object.prototype.toString.call(obj));
- }
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+}
- JSON.length = 1;
- JSON[0] = 1;
+JSON.length = 1;
+JSON[0] = 1;
assert(Array.prototype.reduceRight.call(JSON, callbackfn, 1), 'Array.prototype.reduceRight.call(JSON, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');