Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] : OptionalChaining Bug fixes (#7288)
* Added optionalExpression types to babylon and babel-types * OptionalChain transforms bug fix * Added OptionalExpressions to babel-generator. Fixed OptionalChain Bugs * Removed 'optionalChain' from newExpression and added test cases * Added test cases for optionalChain * Update index.js
- Loading branch information
1 parent
dd0337c
commit a3ad518
Showing
35 changed files
with
1,276 additions
and
616 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
39 changes: 0 additions & 39 deletions
39
packages/babel-generator/test/fixtures/types/Optional-NewExpression/input.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/babel-generator/test/fixtures/types/Optional-NewExpression/options.json
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
packages/babel-generator/test/fixtures/types/Optional-NewExpression/output.js
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...posal-optional-chaining/test/fixtures/general/lhs-assignment-read-and-update/options.json
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,3 +1,3 @@ | ||
{ | ||
"throws": "Illegal optional chain in assignment expression" | ||
"throws": "Invalid left-hand side in assignment expression" | ||
} |
2 changes: 1 addition & 1 deletion
2
...babel-plugin-proposal-optional-chaining/test/fixtures/general/lhs-assignment/options.json
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,3 +1,3 @@ | ||
{ | ||
"throws": "Illegal optional chain in assignment expression" | ||
"throws": "Invalid left-hand side in assignment expression" | ||
} |
2 changes: 1 addition & 1 deletion
2
...ges/babel-plugin-proposal-optional-chaining/test/fixtures/general/lhs-update/options.json
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,3 +1,3 @@ | ||
{ | ||
"throws": "Illegal optional chain in update expression" | ||
"throws": "Invalid left-hand side in postfix operation" | ||
} |
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
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
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
Oops, something went wrong.