| Index: src/regexp.js
|
| ===================================================================
|
| --- src/regexp.js (revision 12500)
|
| +++ src/regexp.js (working copy)
|
| @@ -140,18 +140,15 @@
|
| var j = REGEXP_FIRST_CAPTURE + 2;
|
| for (var i = 1; i < numResults; i++) {
|
| start = lastMatchInfo[j++];
|
| - end = lastMatchInfo[j++];
|
| - if (end != -1) {
|
| + if (start != -1) {
|
| + end = lastMatchInfo[j];
|
| if (start + 1 == end) {
|
| result[i] = %_StringCharAt(s, start);
|
| } else {
|
| result[i] = %_SubString(s, start, end);
|
| }
|
| - } else {
|
| - // Make sure the element is present. Avoid reading the undefined
|
| - // property from the global object since this may change.
|
| - result[i] = void 0;
|
| }
|
| + j++;
|
| }
|
| return result;
|
| }
|
|
|