Home | History | Annotate | Download | only in webkit

Lines Matching refs:callCount

64 var callCount = 0;
65 shouldBe("sparseArray.reduce(function(a,b){ callCount++; }); callCount", "0");
66 callCount = 0;
67 shouldBe("toObject(sparseArray).reduce(function(a,b){ callCount++; }); callCount", "0");
68 var callCount = 0;
69 shouldBe("sparseArray.reduce(function(a,b){ callCount++; }, 0); callCount", "1");
70 callCount = 0;
71 shouldBe("toObject(sparseArray).reduce(function(a,b){ callCount++; }, 0); callCount", "1");
72 callCount = 0;
73 shouldBe("[0,1,2,3,4].reduce(function(a,b){ callCount++; }, 0); callCount", "5");
74 callCount = 0;
75 shouldBe("[0,1,2,3,4].reduce(function(a,b){ callCount++; }); callCount", "4");
76 callCount = 0;
77 shouldBe("[1, 2, 3, 4].reduce(function(a,b, i, thisObj){ thisObj.length--; callCount++; return a + b; }, 0); callCount", "2");
78 callCount = 0;
79 shouldBe("[1, 2, 3, 4].reduce(function(a,b, i, thisObj){ thisObj.length++; callCount++; return a + b; }, 0); callCount", "4");
80 callCount = 0;
81 shouldBe("toObject([1, 2, 3, 4]).reduce(function(a,b, i, thisObj){ thisObj.length--; callCount++; return a + b; }, 0); callCount", "4");
82 callCount = 0;
83 shouldBe("toObject([1, 2, 3, 4]).reduce(function(a,b, i, thisObj){ thisObj.length++; callCount++; return a + b; }, 0); callCount", "4");