summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js29
1 files changed, 15 insertions, 14 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
index d4cf4da37..2c3a2f1e7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
@@ -9,22 +9,23 @@ description: >
accessor property on an Array
---*/
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
+var testResult = false;
- var arr = [0, , 2];
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+}
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
+var arr = [0, , 2];
- arr.reduceRight(callbackfn, "initialValue");
+Object.defineProperty(arr, "1", {
+ get: function() {
+ return 1;
+ },
+ configurable: true
+});
+
+arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');