зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1288459 - Convert a few existing calls to Parser::statement over to Parser::statementListItem (which still has identical functionality at present), before the two functions' behavior is made to differ. r=arai
--HG-- extra : rebase_source : 7eac11fa962864ded95cda2ee9a1069b90f12ae4
This commit is contained in:
Родитель
fd76796d50
Коммит
58af55055c
|
@ -3557,7 +3557,7 @@ Parser<ParseHandler>::statementList(YieldHandling yieldHandling)
|
|||
return null();
|
||||
statementBegin = pos.begin;
|
||||
}
|
||||
Node next = statement(yieldHandling, canHaveDirectives);
|
||||
Node next = statementListItem(yieldHandling, canHaveDirectives);
|
||||
if (!next) {
|
||||
if (tokenStream.isEOF())
|
||||
isUnexpectedEOF_ = true;
|
||||
|
@ -5405,7 +5405,7 @@ Parser<ParseHandler>::switchStatement(YieldHandling yieldHandling)
|
|||
return null();
|
||||
statementBegin = pos.begin;
|
||||
}
|
||||
Node stmt = statement(yieldHandling);
|
||||
Node stmt = statementListItem(yieldHandling);
|
||||
if (!stmt)
|
||||
return null();
|
||||
if (!warnedAboutStatementsAfterReturn) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче