summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-5-21.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-21.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
index 0f105c52c..f101b1660 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
@@ -8,11 +8,10 @@ description: Array.prototype.map - the global object can be used as thisArg
---*/
var global = this;
+ function callbackfn(val, idx, obj) {
+ return this === global;
+ }
-function callbackfn(val, idx, obj) {
- return this === global;
-}
-
-var testResult = [11].map(callbackfn, this);
+ var testResult = [11].map(callbackfn, this);
assert.sameValue(testResult[0], true, 'testResult[0]');