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:
Jeff Walden 2016-08-24 22:16:34 -07:00
Родитель fd76796d50
Коммит 58af55055c
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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) {