summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-2-3.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-3.js26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
index c6170291e..4c6c6b18d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
@@ -9,21 +9,23 @@ description: >
own data property that overrides an inherited data property
---*/
- function callbackfn(val, idx, obj) {
- return val > 10;
- }
+function callbackfn(val, idx, obj) {
+ return val > 10;
+}
- var proto = { length: 3 };
+var proto = {
+ length: 3
+};
- var Con = function () { };
- Con.prototype = proto;
+var Con = function() {};
+Con.prototype = proto;
- var child = new Con();
- child.length = 2;
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
+var child = new Con();
+child.length = 2;
+child[0] = 12;
+child[1] = 11;
+child[2] = 9;
- var testResult = Array.prototype.map.call(child, callbackfn);
+var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');