Irregexp (bytecodes) don't forget to update current position
on a no-case successful backref. Review URL: http://codereview.chromium.org/13615 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@932 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
bf9d096326
commit
8bbd1be424
@ -381,6 +381,7 @@ static bool RawMatch(const byte* code_base,
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
if (BackRefMatchesNoCase(from, current, len, subject)) {
|
if (BackRefMatchesNoCase(from, current, len, subject)) {
|
||||||
|
current += len;
|
||||||
pc += BC_CHECK_NOT_BACK_REF_NO_CASE_LENGTH;
|
pc += BC_CHECK_NOT_BACK_REF_NO_CASE_LENGTH;
|
||||||
} else {
|
} else {
|
||||||
pc = code_base + Load32(pc + 2);
|
pc = code_base + Load32(pc + 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user