Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infer names of anonymous functions in logical assignments (#11658)
This is a partial revert of #11370, updating the tests to match the [new consensus](babel/proposals#66 (comment)).
- Loading branch information
1 parent
1440d97
commit a3f0089
Showing
5 changed files
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...gnment-operators/test/fixtures/logical-assignment/anonymous-functions-transform/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var a; | ||
a || (a = (0, function () {})); | ||
a && (a = (0, function () {})); | ||
a ?? (a = (0, function () {})); | ||
a || (a = function () {}); | ||
a && (a = function () {}); | ||
a ?? (a = function () {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...assignment-operators/test/fixtures/logical-assignment/arrow-functions-transform/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var a; | ||
a || (a = (0, () => {})); | ||
a && (a = (0, () => {})); | ||
a ?? (a = (0, () => {})); | ||
a || (a = () => {}); | ||
a && (a = () => {}); | ||
a ?? (a = () => {}); |