Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable class static blocks by default (#13713)
* Remove classStaticBlock plugin * Update tests * Remove class static blocks from proposalPlugins * Update tests * Remove classStaticBlock from mapping for test262 * chore: update babel-types Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
- Loading branch information
1 parent
99a3fef
commit ddc45a5
Showing
181 changed files
with
179 additions
and
114 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
3 changes: 1 addition & 2 deletions
3
packages/babel-generator/test/fixtures/minified/static-block/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,3 @@ | ||
{ | ||
"minified": true, | ||
"plugins": ["classStaticBlock"] | ||
"minified": true | ||
} |
1 change: 0 additions & 1 deletion
1
packages/babel-generator/test/fixtures/types/ClassBody-StaticBlock/options.json
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
3 changes: 0 additions & 3 deletions
3
packages/babel-parser/test/fixtures/comments/basic/class-static-block/options.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/babel-parser/test/fixtures/experimental/_no-plugin/class-static-block/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/class-static-block/options.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...experimental/class-static-block/await-binding-in-initializer-in-static-block/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../test/fixtures/experimental/class-static-block/await-binding-in-static-block/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ges/babel-parser/test/fixtures/experimental/class-static-block/invalid-await/options.json
This file was deleted.
Oops, something went wrong.
5 changes: 1 addition & 4 deletions
5
...abel-parser/test/fixtures/experimental/class-static-block/invalid-decorators/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": [ | ||
"classStaticBlock", | ||
["decorators", { "decoratorsBeforeExport": true }] | ||
] | ||
"plugins": [["decorators", { "decoratorsBeforeExport": true }]] | ||
} |
2 changes: 1 addition & 1 deletion
2
...rser/test/fixtures/experimental/class-static-block/invalid-legacy-decorators/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": ["classStaticBlock", "decorators-legacy"] | ||
"plugins": ["decorators-legacy"] | ||
} |
5 changes: 0 additions & 5 deletions
5
...ges/babel-parser/test/fixtures/experimental/class-static-block/invalid-yield/options.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babel-parser/test/fixtures/experimental/class-static-block/options.json
This file was deleted.
Oops, something went wrong.
11 changes: 2 additions & 9 deletions
11
.../typescript/static-blocks/invalid-static-block-with-accessibility-private-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:17)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...ypescript/static-blocks/invalid-static-block-with-accessibility-protected-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:19)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...s/typescript/static-blocks/invalid-static-block-with-accessibility-public-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:16)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...ures/typescript/static-blocks/invalid-static-block-with-modifier-abstract-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...ures/typescript/static-blocks/invalid-static-block-with-modifier-override-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...tures/typescript/static-blocks/invalid-static-blocks-with-modifer-declare-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:17)" | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...res/typescript/static-blocks/invalid-static-blocks-with-modifier-readonly-02/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,12 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"plugins": ["typescript"], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/babel-parser/test/fixtures/typescript/static-blocks/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": ["classStaticBlock", "typescript"], | ||
"plugins": ["typescript"], | ||
"sourceType": "module" | ||
} |
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
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
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
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
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.