Bug 1296814 - Remove for-in/of loop parsing code that redundantly marks the loop target as assigned -- Parser::forHeadStart already does this. r=anba

--HG--
extra : rebase_source : 62a97d9560f32bc692ddcea345c428d788f664c5
This commit is contained in:
Jeff Walden 2016-11-13 00:33:38 -08:00
Родитель f746b98c82
Коммит 4fc1778679
1 изменённых файлов: 0 добавлений и 6 удалений

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

@ -5654,12 +5654,6 @@ Parser<ParseHandler>::forStatement(YieldHandling yieldHandling)
stmt.refineForKind(StatementKind::ForOfLoop);
}
if (!handler.isDeclarationList(target)) {
MOZ_ASSERT(!forLoopLexicalScope);
if (!checkAndMarkAsAssignmentLhs(target, PlainAssignment))
return null();
}
// Parser::declaration consumed everything up to the closing ')'. That
// token follows an {Assignment,}Expression, so the next token must be
// consumed as if an operator continued the expression, i.e. as None.