Report some errors about invalid left-hand-sides in for-in/of loop heads

using code with an explicitly computed offset.
This commit is contained in:
wolfbeast 2019-04-06 10:41:42 +02:00 • committed by Roy Tam
commit 71dc0dd5c0
2 changed files with 26 additions and 38 deletions

View file

@ -1139,7 +1139,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
Node* forInitialPart,
mozilla::Maybe<ParseContext::Scope>& forLetImpliedScope,
Node* forInOrOfExpression);
bool validateForInOrOfLHSExpression(Node target, PossibleError* possibleError);
Node expressionAfterForInOrOf(ParseNodeKind forHeadKind, YieldHandling yieldHandling);
Node switchStatement(YieldHandling yieldHandling);
@ -1338,7 +1337,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
KeyedDestructuringAssignment,
IncrementAssignment,
DecrementAssignment,
ForInOrOfTarget
};
bool checkAndMarkAsAssignmentLhs(Node pn, AssignmentFlavor flavor,