LibJS: Implement logical assignment operators (&&=, ||=, ??=)

TC39 proposal, stage 4 as of 2020-07.
https://tc39.es/proposal-logical-assignment/
This commit is contained in:
Linus Groh 2020-10-05 16:49:43 +01:00 committed by Andreas Kling
commit aa71dae03c
Notes: sideshowbarker 2024-07-19 02:02:06 +09:00
6 changed files with 108 additions and 6 deletions

View file

@ -816,6 +816,9 @@ enum class AssignmentOp {
LeftShiftAssignment,
RightShiftAssignment,
UnsignedRightShiftAssignment,
AndAssignment,
OrAssignment,
NullishAssignment,
};
class AssignmentExpression final : public Expression {