Home | History | Annotate | Download | only in regress

Lines Matching refs:lastIndex

30 // RegExp with global flag: exec and test updates lastIndex.
33 assertEquals(0, re.lastIndex, "Global, initial lastIndex");
36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1");
38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2");
41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1");
43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2");
45 // RegExp without global flag: exec and test leavs lastIndex at zero.
48 assertEquals(0, re2.lastIndex, "Non-global, initial lastIndex");
51 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after test 1");
53 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after test 2");
56 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after exec 1");
58 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after exec 2");