Changeset 11034 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Nov 3, 2005, 10:11:58 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp_object.cpp
r10818 r11034 110 110 } 111 111 112 UString match = regExpObj->performMatch(regExp, input, static_cast<int>(lastIndex)); 112 int foundIndex; 113 UString match = regExpObj->performMatch(regExp, input, static_cast<int>(lastIndex), &foundIndex); 113 114 bool didMatch = !match.isNull(); 114 115 … … 120 121 if (didMatch) { 121 122 if (globalFlag) 122 thisObj->put(exec, "lastIndex", Number( lastIndex + match.size()), DontDelete | DontEnum);123 thisObj->put(exec, "lastIndex", Number(foundIndex + match.size()), DontDelete | DontEnum); 123 124 return regExpObj->arrayOfMatches(exec, match); 124 125 } else {
Note:
See TracChangeset
for help on using the changeset viewer.