summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/map/15.4.4.19-2-10.js')
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-10.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
index 9a74b1e09..431968e00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ 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');