summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
index eca6eb28c..fd9bfba94 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
@@ -9,13 +9,17 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
+foo.prototype = new Array(1, 2, 3);
- var callCnt = 0;
- function cb(){callCnt++}
- var i = f.forEach(cb);
+function foo() {}
+var f = new foo();
+f.length = 0;
+
+var callCnt = 0;
+
+function cb() {
+ callCnt++
+}
+var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');