summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
index 1e447f105..286093b8b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
@@ -9,17 +9,13 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
-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], 11, 'newArr[0]');