summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:05:22 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:05:22 +0200
commit74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe (patch)
tree5b10fe3716030470a072ffaaab0a66653846afb6 /js/src/frontend/Parser.h
parent8580bf233e69da042e3d33cad56ca6f42ce441a4 (diff)
downloadUXP-74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe.tar
UXP-74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe.tar.gz
UXP-74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe.tar.lz
UXP-74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe.tar.xz
UXP-74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe.zip
Simplify checking of targets within destructuring patterns.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index c50f8e47d..0baaac3bc 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -1331,12 +1331,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
#endif
}
- enum AssignmentFlavor {
- KeyedDestructuringAssignment,
- IncrementAssignment,
- DecrementAssignment,
- };
-
bool matchInOrOf(bool* isForInp, bool* isForOfp);
bool hasUsedFunctionSpecialName(HandlePropertyName name);
@@ -1374,9 +1368,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
FunctionCallBehavior behavior = ForbidAssignmentToFunctionCalls);
private:
- bool reportIfArgumentsEvalTarget(Node nameNode);
- bool reportIfNotValidSimpleAssignmentTarget(Node target, AssignmentFlavor flavor);
-
bool checkAndMarkAsIncOperand(Node kid);
bool checkStrictAssignment(Node lhs);
bool checkStrictBinding(PropertyName* name, TokenPos pos);