Bug 1879225: Remove obsolete argument r=dminor

The RegExpCompiler stores the flags internally, so there isn't any need to pass them in here. Upstream V8 fixed the API.

Differential Revision: https://phabricator.services.mozilla.com/D201919
This commit is contained in:
Iain Ireland 2024-02-28 23:39:07 +00:00
parent 6661d7f364
commit a5d7741777

View File

@ -773,7 +773,7 @@ bool CompilePattern(JSContext* cx, MutableHandleRegExpShared re,
bool isLatin1 = input->hasLatin1Chars();
SampleCharacters(input, compiler);
data.node = compiler.PreprocessRegExp(&data, flags, isLatin1);
data.node = compiler.PreprocessRegExp(&data, isLatin1);
data.error = AnalyzeRegExp(cx->isolate, isLatin1, flags, data.node);
if (data.error != RegExpError::kNone) {
MOZ_ASSERT(data.error == RegExpError::kAnalysisStackOverflow);