summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
index e8b37ab73..23314a32b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
@@ -10,13 +10,17 @@ description: >
---*/
var global = this;
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
- }
+var accessed = false;
- var obj = { 0: 11, length: 1 };
+function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+}
+
+var obj = {
+ 0: 11,
+ length: 1
+};
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, this), true, 'Array.prototype.reduceRight.call(obj, callbackfn, this)');
assert(accessed, 'accessed !== true');