diff options
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js index 09b71e391..2fb4ad6e9 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js @@ -9,14 +9,18 @@ description: > exponential number ---*/ - var testResult = false; +var testResult = false; - function callbackfn(val, idx, obj) { - testResult = (val > 10); - } +function callbackfn(val, idx, obj) { + testResult = (val > 10); +} - var obj = { 1: 11, 2: 9, length: "2E0" }; +var obj = { + 1: 11, + 2: 9, + length: "2E0" +}; - Array.prototype.forEach.call(obj, callbackfn); +Array.prototype.forEach.call(obj, callbackfn); assert(testResult, 'testResult !== true'); |