summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js')
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
index 3b92ddb24..74e0eef2c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-8-12
description: Array.prototype.forEach doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var arr = [1,2,3,4,5];
+ arr["i"] = 10;
+ arr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var arr = [1, 2, 3, 4, 5];
-arr["i"] = 10;
-arr[true] = 11;
-
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');