Add ??= to Logical Assignment Operators (#7623)
`??=` is being merged into the Logical Assignment Operator proposal, and the overall proposal will wait until nullish coalescing is finalized.
This commit is contained in:
@@ -12,7 +12,7 @@ export default declare(api => {
|
||||
AssignmentExpression(path) {
|
||||
const { node, scope } = path;
|
||||
const { operator, left, right } = node;
|
||||
if (operator !== "||=" && operator !== "&&=") {
|
||||
if (operator !== "||=" && operator !== "&&=" && operator !== "??=") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user