summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js42
1 files changed, 20 insertions, 22 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
index de1e7e50e..e8038a797 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
@@ -9,31 +9,29 @@ description: >
step 8 can be visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');