зеркало из https://github.com/mozilla/pjs.git
Bug 483821: native regexps confused because of bug in hash key comparison, r=gal
This commit is contained in:
Родитель
44c481882b
Коммит
8d274f350f
|
@ -2024,7 +2024,7 @@ LookupNativeRegExp(JSContext* cx, void* hash, uint16 re_flags,
|
|||
RESideExit* exit = (RESideExit*)fragment->lastIns->record()->exit;
|
||||
if (exit->re_flags == re_flags &&
|
||||
exit->re_length == re_length &&
|
||||
!memcmp(exit->re_chars, re_chars, re_length)) {
|
||||
!memcmp(exit->re_chars, re_chars, re_length * sizeof(jschar))) {
|
||||
return fragment;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче