mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Remove for-in/of loop parsing code that redundantly marks the loop
target as assigned -- Parser::forHeadStart already does this.
This commit is contained in:
parent
71dc0dd5c0
commit
d215447209
1 changed files with 0 additions and 6 deletions
|
|
@ -5715,12 +5715,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue