зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1634135: Fix dummy TokenStream r=djvj
This was broken by changes to token streams in bug 1592105. Differential Revision: https://phabricator.services.mozilla.com/D73112
This commit is contained in:
Родитель
ab9d506242
Коммит
7d6e295765
|
@ -33,7 +33,7 @@ using mozilla::AssertedCast;
|
|||
using mozilla::Maybe;
|
||||
using mozilla::PointerRangeSize;
|
||||
|
||||
using frontend::TokenStream;
|
||||
using frontend::DummyTokenStream;
|
||||
using frontend::TokenStreamAnyChars;
|
||||
|
||||
using v8::internal::FlatStringReader;
|
||||
|
@ -380,7 +380,7 @@ bool CompilePattern(JSContext* cx, MutableHandleRegExpShared re,
|
|||
&data)) {
|
||||
MOZ_ASSERT(data.error == RegExpError::kStackOverflow);
|
||||
JS::CompileOptions options(cx);
|
||||
TokenStream dummyTokenStream(cx, options, nullptr, 0, nullptr);
|
||||
DummyTokenStream dummyTokenStream(cx, options);
|
||||
ReportSyntaxError(dummyTokenStream, data, pattern);
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче