|
|
|
|
|
by spankalee
637 days ago
|
|
The real safe assignment that I want to see is for optional chaining to be valid in LHS of assignments: foo?.bar = 42;
This would not perform the assignment if an optionally chained value was nullish. It downlevels to foo == null ? undefined : foo.bar = 42;
Given that the assignment is a SyntaxError now, this should be possible. |
|