Justin Ridgewell a3f00896f7
Infer names of anonymous functions in logical assignments (#11658)
This is a partial revert of #11370, updating the tests to match the [new consensus](https://github.com/babel/proposals/issues/66#issuecomment-636984546).
2020-06-03 23:23:40 +02:00

5 lines
70 B
JavaScript

var a;
a || (a = () => {});
a && (a = () => {});
a ?? (a = () => {});