diff options
Diffstat (limited to 'test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js')
-rw-r--r-- | test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js index 903355378..8c1b7fcd5 100644 --- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js +++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js @@ -7,11 +7,12 @@ es5id: 15.4.4.18-5-14 description: Array.prototype.forEach - the Math object can be used as thisArg ---*/ - var result = false; - function callbackfn(val, idx, obj) { - result = (this === Math); - } +var result = false; - [11].forEach(callbackfn, Math); +function callbackfn(val, idx, obj) { + result = (this === Math); +} + +[11].forEach(callbackfn, Math); assert(result, 'result !== true'); |