summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:11:04 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:11:04 +0200
commit7ea8efe0cb3199566b86a2b7ad4cb99df8620324 (patch)
tree8741c6f63918c237b17b1bd7bb0cfce543f63c25 /js/src/frontend/Parser.h
parent74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe (diff)
downloadUXP-7ea8efe0cb3199566b86a2b7ad4cb99df8620324.tar
UXP-7ea8efe0cb3199566b86a2b7ad4cb99df8620324.tar.gz
UXP-7ea8efe0cb3199566b86a2b7ad4cb99df8620324.tar.lz
UXP-7ea8efe0cb3199566b86a2b7ad4cb99df8620324.tar.xz
UXP-7ea8efe0cb3199566b86a2b7ad4cb99df8620324.zip
Report errors for bad increment/decrement operands using
explicitly-specified offsets.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index 0baaac3bc..a7e48c1a4 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -1368,7 +1368,7 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
FunctionCallBehavior behavior = ForbidAssignmentToFunctionCalls);
private:
- bool checkAndMarkAsIncOperand(Node kid);
+ bool checkIncDecOperand(Node operand, uint32_t operandOffset);
bool checkStrictAssignment(Node lhs);
bool checkStrictBinding(PropertyName* name, TokenPos pos);