Skip to content

Commit

Permalink
fix: allow logical assignment operators in AssignmentExpression (#11359)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Apr 1, 2020
1 parent 67609a1 commit df819a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-types/src/constants/index.js
Expand Up @@ -45,6 +45,7 @@ export const ASSIGNMENT_OPERATORS = [
"=",
"+=",
...NUMBER_BINARY_OPERATORS.map(op => op + "="),
...LOGICAL_OPERATORS.map(op => op + "="),
];

export const BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
Expand Down

0 comments on commit df819a0

Please sign in to comment.