mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fixup! refactor(compiler): support o.BinaryExpression for assignments
Fix babel factory for linker
This commit is contained in:
@@ -41,6 +41,9 @@ export class BabelAstFactory implements AstFactory<t.Statement, t.Expression> {
|
||||
case '||':
|
||||
case '??':
|
||||
return t.logicalExpression(operator, leftOperand, rightOperand);
|
||||
case '=':
|
||||
// TODO(signals): Should `WriteVarExpr` be used instead??
|
||||
return this.createAssignment(leftOperand, rightOperand);
|
||||
default:
|
||||
return t.binaryExpression(operator, leftOperand, rightOperand);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user