Lines Matching refs:lastIndex
36 // RegExp caching doesn't set lastIndex correctly.
46 assertEquals(5, re.lastIndex);
48 re.lastIndex = 0;
50 assertEquals(5, re.lastIndex); // Fails if caching.
52 re.lastIndex = 0;
54 assertEquals(5, re.lastIndex); // Fails if caching.
61 assertEquals(5, re.lastIndex);
63 re.lastIndex = 0;
65 assertEquals(5, re.lastIndex); // Fails if caching.
67 re.lastIndex = 0;
69 assertEquals(5, re.lastIndex); // Fails if caching.