Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
504b331
commit 4f206b2
Showing
24 changed files
with
49 additions
and
63 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
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
5 changes: 1 addition & 4 deletions
5
...babel-parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_name/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": "Cannot overwrite reserved type _ (2:5)" | ||
} |
5 changes: 1 addition & 4 deletions
5
...parser/test/fixtures/flow/typeapp-call/underscore_is_illegal_type_param_name/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": "Cannot overwrite reserved type _ (2:13)" | ||
} |
6 changes: 3 additions & 3 deletions
6
packages/babel-parser/test/fixtures/jsx/errors/html-comment/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": "script", | ||
"plugins": ["jsx", "flow"] | ||
} | ||
"sourceType": "script", | ||
"plugins": ["jsx", "flow"] | ||
} |
5 changes: 1 addition & 4 deletions
5
...ages/babel-parser/test/fixtures/typescript/decorators/type-arguments-invalid/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,7 +1,4 @@ | ||
{ | ||
"plugins": [ | ||
"typescript", | ||
["decorators", { "decoratorsBeforeExport": true }] | ||
], | ||
"plugins": ["typescript", ["decorators", { "decoratorsBeforeExport": true }]], | ||
"throws": "Unexpected token, expected \"(\" (2:0)" | ||
} |
5 changes: 1 addition & 4 deletions
5
packages/babel-parser/test/fixtures/typescript/decorators/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,6 +1,3 @@ | ||
{ | ||
"plugins": [ | ||
"typescript", | ||
["decorators", { "decoratorsBeforeExport": true }] | ||
] | ||
"plugins": ["typescript", ["decorators", { "decoratorsBeforeExport": true }]] | ||
} |
6 changes: 2 additions & 4 deletions
6
packages/babel-parser/test/fixtures/typescript/types/tuple-optional-invalid/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,7 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"typescript" | ||
], | ||
"plugins": ["typescript"], | ||
"throws": "A required element cannot follow an optional element. (1:17)" | ||
} | ||
} |
6 changes: 2 additions & 4 deletions
6
packages/babel-parser/test/fixtures/typescript/types/tuple-rest-invalid/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,7 +1,5 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [ | ||
"typescript" | ||
], | ||
"plugins": ["typescript"], | ||
"throws": "A rest element must be last in a tuple type. (1:8)" | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...test/fixtures/es2015/yield/parameter-default-inside-arrow-inside-generator-6/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": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...on/test/fixtures/es2017/async-functions/await-async-function-expression-name/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": "invalid use of await inside of an async function (1:16)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...es2017/async-functions/await-function-declaration-name-inside-async-function/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": "invalid use of await inside of an async function (2:11)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ait-inside-arguments-of-async-call-inside-parameters-of-async-arrow-function/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": "await is not allowed in the parameters of an arrow function inside an async function (2:23)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...tures/es2017/async-functions/await-inside-parameters-of-async-arrow-function/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": "Unexpected token, expected \",\" (1:17)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ures/es2017/async-functions/await-inside-parameters-of-nested-arrow-function/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": "await is not allowed in the parameters of an arrow function inside an async function (2:7)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...s2017/async-functions/await-inside-parameters-of-nested-async-arrow-function/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": "await is not allowed in the parameters of an arrow function inside an async function (2:13)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...t/fixtures/es2017/async-functions/await-inside-parameters-of-nested-function/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": "Unexpected token, expected \",\" (2:25)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babylon/test/fixtures/es2017/async-functions/await-inside-parameters/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": "await is not allowed in async function parameters (1:22)" | ||
} | ||
} |
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