diff options
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-5-5.js')
-rw-r--r-- | test/built-ins/Array/prototype/map/15.4.4.19-5-5.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js index 2e1168549..9568cc3d4 100644 --- a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js +++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js @@ -7,17 +7,18 @@ es5id: 15.4.4.19-5-5 description: Array.prototype.map - thisArg is object from object template ---*/ - var res = false; - function callbackfn(val, idx, obj) - { - return this.res; - } +var res = false; - function foo(){} - var f = new foo(); - f.res = true; +function callbackfn(val, idx, obj) +{ + return this.res; +} - var srcArr = [1]; - var resArr = srcArr.map(callbackfn,f); +function foo() {} +var f = new foo(); +f.res = true; + +var srcArr = [1]; +var resArr = srcArr.map(callbackfn, f); assert.sameValue(resArr[0], true, 'resArr[0]'); |