summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js')
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
index 9422c48fc..92981a4a9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
@@ -9,16 +9,17 @@ description: >
implements its own property get method
---*/
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
+var testResult = false;
+var initialValue = 0;
- var str = new String("012");
+function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+}
- Array.prototype.reduce.call(str, callbackfn, initialValue);
+var str = new String("012");
+
+Array.prototype.reduce.call(str, callbackfn, initialValue);
assert(testResult, 'testResult !== true');