Open ThomasMldr opened 2 years ago
This
if (condition) { this.text = "one"; } else { this.text = "two"; }
becomes: condition ? this.text = "one" : this.text = "two"; instead of the desired: this.text = condition ? "one" : "two";
condition ? this.text = "one" : this.text = "two";
this.text = condition ? "one" : "two";
This only happens when the assignment happens to a variable beginning with this.. if it was just text instead of this.text the replace happens correctly (text = condition ? "one" : "two";)
this.
text
this.text
text = condition ? "one" : "two";
This
becomes:
condition ? this.text = "one" : this.text = "two";
instead of the desired:this.text = condition ? "one" : "two";
This only happens when the assignment happens to a variable beginning with
this.
. if it was justtext
instead ofthis.text
the replace happens correctly (text = condition ? "one" : "two";
)