diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 11:11:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 11:11:04 +0200 |
commit | 7ea8efe0cb3199566b86a2b7ad4cb99df8620324 (patch) | |
tree | 8741c6f63918c237b17b1bd7bb0cfce543f63c25 /js/src/frontend/Parser.h | |
parent | 74672745e6d1932a4aa7fa6a8cd6ab09fd9de4fe (diff) | |
download | UXP-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.h | 2 |
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); |