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.
Enable optional chaining by default in @babel/parser (babel#10817)
- Loading branch information
1 parent
646409b
commit 5f807ae
Showing
48 changed files
with
5 additions
and
50 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
packages/babel-parser/test/fixtures/experimental/_no-plugin/optional-chaining/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babel-parser/test/fixtures/experimental/_no-plugin/optional-chaining/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...el-parser/test/fixtures/experimental/optional-chaining/class-contructor-call/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...abel-parser/test/fixtures/experimental/optional-chaining/conditional-decimal/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ages/babel-parser/test/fixtures/experimental/optional-chaining/function-call/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...el-parser/test/fixtures/experimental/optional-chaining/member-access-bracket/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ages/babel-parser/test/fixtures/experimental/optional-chaining/member-access/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...arser/test/fixtures/experimental/optional-chaining/optioanl-chain-expression/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...bel-parser/test/fixtures/experimental/optional-chaining/optional-constructor/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...r/test/fixtures/experimental/optional-chaining/optional-super-property-class/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...-parser/test/fixtures/experimental/optional-chaining/optional-super-property/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...st/fixtures/experimental/optional-chaining/optional-tagged-template-literals/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../babel-parser/test/fixtures/experimental/optional-chaining/parenthised-chain/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...babel-parser/test/fixtures/experimental/optional-chaining/separated-chaining/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...babel-parser/test/fixtures/experimental/optional-chaining/super-method-class/options.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/flow/typeapp-call/function-call-optional/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 @@ | ||
{ | ||
"plugins": ["jsx", "flow", "optionalChaining"] | ||
"plugins": ["jsx", "flow"] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/flow/typeapp-call/method-call-optional/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 @@ | ||
{ | ||
"plugins": ["jsx", "flow", "optionalChaining"] | ||
"plugins": ["jsx", "flow"] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/flow/typeapp-call/method-call-optional2/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 @@ | ||
{ | ||
"plugins": ["jsx", "flow", "optionalChaining"] | ||
"plugins": ["jsx", "flow"] | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/typescript/optional-chaining/type-arguments/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,4 +1,4 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": ["typescript", "optionalChaining"] | ||
"plugins": ["typescript"] | ||
} |
2 changes: 1 addition & 1 deletion
2
...ages/babel-parser/test/fixtures/v8intrinsic/_errors/optional-call-expression/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,4 +1,4 @@ | ||
{ | ||
"plugins": ["optionalChaining", "v8intrinsic"], | ||
"plugins": ["v8intrinsic"], | ||
"throws": "Unexpected token (1:0)" | ||
} |