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:
@@ -2095,7 +2095,8 @@ export type Standardized =
|
||||
| ClassProperty
|
||||
| ClassPrivateProperty
|
||||
| ClassPrivateMethod
|
||||
| PrivateName;
|
||||
| PrivateName
|
||||
| StaticBlock;
|
||||
export type Expression =
|
||||
| ArrayExpression
|
||||
| AssignmentExpression
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user