summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
index a9b8cdae4..63ffe45b5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
@@ -9,21 +9,21 @@ description: >
here
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], "length", 'newArr[0]');