diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 10:41:42 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 10:41:42 +0200 |
commit | 4a62cbec61620f54bfb3949d9165c4dd406c2444 (patch) | |
tree | 2e2c7b4081f42421f96d6d2573dc1d8e0fd7c2ca /js/src/frontend/Parser.h | |
parent | d60cfce5e4b2e7ecf344b86c1bd4a712490a8c52 (diff) | |
download | UXP-4a62cbec61620f54bfb3949d9165c4dd406c2444.tar UXP-4a62cbec61620f54bfb3949d9165c4dd406c2444.tar.gz UXP-4a62cbec61620f54bfb3949d9165c4dd406c2444.tar.lz UXP-4a62cbec61620f54bfb3949d9165c4dd406c2444.tar.xz UXP-4a62cbec61620f54bfb3949d9165c4dd406c2444.zip |
Report some errors about invalid left-hand-sides in for-in/of loop heads
using code with an explicitly computed offset.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r-- | js/src/frontend/Parser.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 6bd7e586e..e3827d953 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -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, |