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:
@@ -1619,7 +1619,6 @@ export default class StatementParser extends ExpressionParser {
|
||||
classBody: N.ClassBody,
|
||||
member: N.StaticBlock & { decorators?: Array<N.Decorator> },
|
||||
) {
|
||||
this.expectPlugin("classStaticBlock", member.start);
|
||||
// Start a new lexical scope
|
||||
this.scope.enter(SCOPE_CLASS | SCOPE_STATIC_BLOCK | SCOPE_SUPER);
|
||||
// Start a new scope with regard to loop labels
|
||||
|
||||
Reference in New Issue
Block a user