Bug 1822882 - Update irregexp to 49d868fb32eb9982980ed0f6d0925572d425ce94 r=iain

Differential Revision: https://phabricator.services.mozilla.com/D172814
This commit is contained in:
Updatebot 2023-03-17 16:24:29 +00:00
Родитель 708c070510
Коммит af85a73834
3 изменённых файлов: 4 добавлений и 24 удалений

Просмотреть файл

@ -1313,26 +1313,6 @@ RegExpParserState* RegExpParserImpl<CharT>::ParseOpenParenthesis(
state->builder()->flags(), zone());
}
#ifdef DEBUG
namespace {
bool IsSpecialClassEscape(base::uc32 c) {
switch (c) {
case 'd':
case 'D':
case 's':
case 'S':
case 'w':
case 'W':
return true;
default:
return false;
}
}
} // namespace
#endif
// In order to know whether an escape is a backreference or not we have to scan
// the entire regexp and find the number of capturing parentheses. However we
// don't want to scan the regexp twice unless it is necessary. This mini-parser
@ -2198,7 +2178,7 @@ base::uc32 RegExpParserImpl<CharT>::ParseCharacterEscape(
InClassEscapeState in_class_escape_state,
bool* is_escaped_unicode_character) {
DCHECK_EQ('\\', current());
DCHECK(has_next() && !IsSpecialClassEscape(Next()));
DCHECK(has_next());
Advance();
@ -2569,7 +2549,6 @@ RegExpTree* RegExpParserImpl<CharT>::ParseClassStringDisjunction(
// We don't need to handle missing closing '}' here.
// If the character class is correctly closed, ParseClassSetCharacter will
// report an error.
DCHECK_EQ(current(), '}');
Advance();
return nullptr;
}

Просмотреть файл

@ -155,6 +155,7 @@ class RegExp final : public AllStatic {
V8_WARN_UNUSED_RESULT
static MaybeHandle<Object> ThrowRegExpException(Isolate* isolate,
Handle<JSRegExp> re,
RegExpFlags flags,
Handle<String> pattern,
RegExpError error);
static void ThrowRegExpException(Isolate* isolate, Handle<JSRegExp> re,

Просмотреть файл

@ -9,8 +9,8 @@ origin:
description: A fast regular expression engine from V8
url: https://v8.dev
release: c3d7f93e852001dd1ddb23cfb20b16bd868c8965 (Mon Feb 13 17:17:00 2023).
revision: c3d7f93e852001dd1ddb23cfb20b16bd868c8965
release: 49d868fb32eb9982980ed0f6d0925572d425ce94 (Thu Mar 16 18:05:16 2023).
revision: 49d868fb32eb9982980ed0f6d0925572d425ce94
license: BSD-3-Clause
license-file: LICENSE.v8