summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js50
1 files changed, 25 insertions, 25 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
index 7f694e993..43000dca2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
@@ -10,31 +10,31 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-child[1] = 12;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+ child[1] = 12;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');