diff options
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js index ba0994154..eb8ad48c6 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js @@ -9,16 +9,16 @@ description: > after the call ---*/ - var result = false; - var arr = [1, 2, 3, 4, 5]; +var result = false; +var arr = [1, 2, 3, 4, 5]; - function callbackfn(val, Idx, obj) { - arr[4] = 6; - if (val >= 6) { - result = true; - } - } +function callbackfn(val, Idx, obj) { + arr[4] = 6; + if (val >= 6) { + result = true; + } +} - arr.forEach(callbackfn); +arr.forEach(callbackfn); assert(result, 'result !== true'); |