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>
This commit is contained in:
Sosuke Suzuki
2021-10-29 03:39:04 +09:00
committed by GitHub
parent 99a3fefede
commit ddc45a5a50
181 changed files with 179 additions and 114 deletions

View File

@@ -2095,7 +2095,8 @@ export type Standardized =
| ClassProperty
| ClassPrivateProperty
| ClassPrivateMethod
| PrivateName;
| PrivateName
| StaticBlock;
export type Expression =
| ArrayExpression
| AssignmentExpression

View File

@@ -4280,6 +4280,7 @@ export function isStandardized(
"ClassPrivateProperty" === nodeType ||
"ClassPrivateMethod" === nodeType ||
"PrivateName" === nodeType ||
"StaticBlock" === nodeType ||
(nodeType === "Placeholder" &&
("Identifier" === (node as t.Placeholder).expectedNode ||
"StringLiteral" === (node as t.Placeholder).expectedNode ||