Report errors for bad increment/decrement operands using

explicitly-specified offsets.
This commit is contained in:
wolfbeast 2019-04-06 11:11:04 +02:00 • committed by Roy Tam
commit a389b4e151
2 changed files with 27 additions and 30 deletions

View file

@ -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);