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

@@ -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