Lines Matching refs:lastIndex
43 assertEquals(7, sticky.lastIndex);
49 assertEquals(6, stickyplain.lastIndex);
56 global.lastIndex = 0;
63 plainglobal.lastIndex = 0;
69 assertEquals(7, stickyglobal.lastIndex);
71 stickyglobal.lastIndex = 0;
73 stickyglobal.lastIndex = 2;
75 assertEquals(9, stickyglobal.lastIndex);
82 assertEquals(6, stickyplainglobal.lastIndex);
84 stickyplainglobal.lastIndex = 0;
86 stickyplainglobal.lastIndex = 2;
88 assertEquals(8, stickyplainglobal.lastIndex);
99 assertEquals(7, stickyglobal2.lastIndex);
101 stickyglobal2.lastIndex = 0;
103 stickyglobal2.lastIndex = 2;
105 assertEquals(9, stickyglobal2.lastIndex);
113 sticky.lastIndex = -1; // Causes sticky regexp to fail fast
115 assertEquals(0, sticky.lastIndex);
117 sticky.lastIndex = -1; // Causes sticky regexp to fail fast
119 assertEquals(0, sticky.lastIndex);
125 hat.lastIndex = 2;
129 mhat.lastIndex = 2;
131 mhat.lastIndex = 2;