summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-5-3.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-3.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
index 97dd1e728..08e3e062b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-5-3
description: Array.prototype.map - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, a);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,a);
assert.sameValue(resArr[0], true, 'resArr[0]');