Lines Matching refs:lastIndex
601 lineEnding.lastIndex = 0; // Start the search from the beginning of the string.
608 const indexes = [0, newPartContainsEnding.index, lineEnding.lastIndex];
611 ArrayPrototypePush(indexes, nextMatch.index, lineEnding.lastIndex);
613 const lastIndex = indexes.length - 1;
615 this[kLine_buffer] = StringPrototypeSlice(string, indexes[lastIndex]);
616 for (let i = 1; i < lastIndex; i += 2) {
1334 lineEnding.lastIndex = 0;
1337 let lastIndex = 0;
1339 this[kInsertString](StringPrototypeSlice(s, lastIndex, nextMatch.index));
1340 ({ lastIndex } = lineEnding);
1342 // Restore lastIndex as the call to kLine could have mutated it.
1343 lineEnding.lastIndex = lastIndex;
1347 this[kInsertString](StringPrototypeSlice(s, lastIndex));