mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Undo captures from failed OPT child
This commit is contained in:
parent
f5682225f9
commit
9d49971dfa
@ -1364,8 +1364,10 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
||||
}
|
||||
int kidMatch = matchRENodes(state, (RENode)ren.kid,
|
||||
ren.next, input, index);
|
||||
if (kidMatch == -1)
|
||||
if (kidMatch == -1) {
|
||||
state.parenCount = saveNum;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
int restMatch = matchRENodes(state, ren.next,
|
||||
stop, input, kidMatch);
|
||||
|
@ -1364,8 +1364,10 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
||||
}
|
||||
int kidMatch = matchRENodes(state, (RENode)ren.kid,
|
||||
ren.next, input, index);
|
||||
if (kidMatch == -1)
|
||||
if (kidMatch == -1) {
|
||||
state.parenCount = saveNum;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
int restMatch = matchRENodes(state, ren.next,
|
||||
stop, input, kidMatch);
|
||||
|
Loading…
Reference in New Issue
Block a user