More fixes for #64285 - i had mis-merged from SpiderMonkey.

This commit is contained in:
rogerl%netscape.com 2001-01-22 22:30:37 +00:00
parent 86dd5878d5
commit 3d250fdec1
2 changed files with 4 additions and 4 deletions

View File

@ -1429,7 +1429,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
grState.state.parenCount = num;
if (previousKid != -1)
matchRENodes(grState.state, grState.kid, grState.next, previousKid);
return match;
return index;
}
else
return -1;
@ -1712,7 +1712,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
}
cp2--;
}
return -1;
break;
}
case REOP_WBDRY:
if (((index == 0) || !isWord(input[index-1]))

View File

@ -1429,7 +1429,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
grState.state.parenCount = num;
if (previousKid != -1)
matchRENodes(grState.state, grState.kid, grState.next, previousKid);
return match;
return index;
}
else
return -1;
@ -1712,7 +1712,7 @@ public class NativeRegExp extends ScriptableObject implements Function {
}
cp2--;
}
return -1;
break;
}
case REOP_WBDRY:
if (((index == 0) || !isWord(input[index-1]))