summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
index 3e348991d..4c87b6e3d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
@@ -9,12 +9,16 @@ description: >
is 1 (length overridden to true(type conversion))
---*/
- function callbackfn(val, idx, obj) {
- return true;
- }
+function callbackfn(val, idx, obj) {
+ return true;
+}
- var obj = { 0: 11, 1: 9, length: true };
- var newArr = Array.prototype.filter.call(obj, callbackfn);
+var obj = {
+ 0: 11,
+ 1: 9,
+ length: true
+};
+var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');