summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js')
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js27
1 files changed, 14 insertions, 13 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
index c9a7de747..5b8e78643 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
@@ -9,18 +9,19 @@ description: >
order
---*/
- var arr = [0, 1, 2, 3, 4, 5];
- var lastIdx = 0;
- var called = 0;
- function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return false;
- } else {
- lastIdx++;
- return true;
- }
- }
- var newArr = arr.filter(callbackfn);
+var arr = [0, 1, 2, 3, 4, 5];
+var lastIdx = 0;
+var called = 0;
+
+function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return false;
+ } else {
+ lastIdx++;
+ return true;
+ }
+}
+var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, called, 'newArr.length');