Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(optional chaining): Optional delete returns true with nullish base (
#10806) Per issue 10805, the return value when using delete on a nullish base is currently undefined. The correct return type should be true.
- Loading branch information
1 parent
3d0c5d2
commit bb6cc61
Showing
6 changed files
with
15 additions
and
19 deletions.
There are no files selected for viewing
7 changes: 2 additions & 5 deletions
7
...s/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-1/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,8 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"jsx", | ||
"flow" | ||
], | ||
"plugins": ["jsx", "flow"], | ||
"throws": "Unexpected token, expected \"{\" (2:26)" | ||
} | ||
} |
7 changes: 2 additions & 5 deletions
7
...s/babel-parser/test/fixtures/flow/type-annotations/typeof-reserved-invalid-5/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,8 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"jsx", | ||
"flow" | ||
], | ||
"plugins": ["jsx", "flow"], | ||
"throws": "Unexpected token (2:23)" | ||
} | ||
} |
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
4 changes: 1 addition & 3 deletions
4
packages/babel-plugin-transform-modules-amd/test/fixtures/regression/9346/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,5 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"transform-modules-amd" | ||
] | ||
"plugins": ["transform-modules-amd"] | ||
} |