Commit c38770d
committed
Don't bother running ?? again during augmented assignment
If we've reached the assignment stage during x ??= y, we know that x
is nullish (otherwise we would have returned it earlier). But we've
been running "x = (x ?? y)", even though we know that the right hand
side will be y in this case.1 parent 2e3b5c2 commit c38770d
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
1441 | | - | |
1442 | | - | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1443 | 1446 | | |
1444 | 1447 | | |
1445 | 1448 | | |
| |||
0 commit comments