summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
index 9a04bb487..82834ff12 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
@@ -9,17 +9,17 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = [, , , ].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = [, , , ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');