fixup! refactor(compiler): support o.BinaryExpression for assignments

Fix babel factory for linker
This commit is contained in:
Paul Gschwendtner
2023-06-29 11:17:35 +00:00
parent 09ad1ef5a2
commit cd76360ea8
@@ -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);
}