forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform NamedEvaluation of Anonymous Functions in Logical Assignment
This is a partial revert of babel#11370, updating the tests to match the [new consensus](babel/proposals#66 (comment)).
- Loading branch information
1 parent
1440d97
commit f62ed55
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 = () => {}); |