File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -39,20 +39,6 @@ type NodeTransformOptions = {
3939 parent ?: angular . AST ;
4040} ;
4141
42- const assignmentOperators = new Set ( [
43- '=' ,
44- // https://github.com/angular/angular/pull/62064
45- '+=' , // addition assignment
46- '-=' , // subtraction assignment
47- '*=' , // multiplication assignment
48- '/=' , // division assignment
49- '%=' , // remainder assignment
50- '**=' , // exponentiation assignment
51- '&&=' , // logical AND assignment
52- '||=' , // logical OR assignment
53- '??=' , // nullish coalescing assignment
54- ] ) ;
55-
5642class Transformer extends Source {
5743 #node;
5844 #text;
@@ -184,7 +170,7 @@ class Transformer extends Source {
184170 ) ;
185171 }
186172
187- if ( assignmentOperators . has ( operator ) ) {
173+ if ( angular . Binary . isAssignmentOperation ( operator ) ) {
188174 return this . #create< babel . AssignmentExpression > (
189175 {
190176 ...properties ,
You can’t perform that action at this time.
0 commit comments