зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f746b98c82
Коммит
4fc1778679
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче