summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
index 51aefae34..22775361f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
@@ -10,27 +10,27 @@ description: >
equals number of parameters)
---*/
- var called = 0;
- var testResult = false;
+var called = 0;
+var testResult = false;
- function callbackfn(val, idx, obj) {
- called++;
- if (called !== 1 && !testResult) {
- return;
- }
- if (idx === 0) {
- testResult = (val === 11);
- } else if (idx === 1) {
- testResult = (val === 9);
- } else {
- testResult = false;
- }
- }
+function callbackfn(val, idx, obj) {
+ called++;
+ if (called !== 1 && !testResult) {
+ return;
+ }
+ if (idx === 0) {
+ testResult = (val === 11);
+ } else if (idx === 1) {
+ testResult = (val === 9);
+ } else {
+ testResult = false;
+ }
+}
- var func = function (a, b) {
- Array.prototype.forEach.call(arguments, callbackfn);
- };
+var func = function(a, b) {
+ Array.prototype.forEach.call(arguments, callbackfn);
+};
- func(11, 9);
+func(11, 9);
assert(testResult, 'testResult !== true');