summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js23
1 files changed, 10 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
index 8d01e4e83..30daec0a8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
@@ -9,22 +9,19 @@ description: >
accumulator
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-(function fun() {
- arg = arguments;
-}(10, 11, 12, 13));
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, arg), true, 'Array.prototype.reduce.call(obj, callbackfn, arg)');
assert(accessed, 'accessed !== true');