summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
index d41f2f0db..9a8919e54 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
@@ -9,13 +9,16 @@ description: >
is -0)
---*/
- var accessed = false;
+var accessed = false;
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- }
+function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+}
- var obj = { 0: 9, length: -0 };
+var obj = {
+ 0: 9,
+ length: -0
+};
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');