Parse class static block (#12079)
Co-authored-by: Brian Ng <bng412@gmail.com>
This commit is contained in:
committed by
Nicolò Ribaudo
parent
6830c90ac9
commit
3ccca88178
17
packages/babel-parser/test/fixtures/experimental/class-static-block/nested-control-flow/input.js
vendored
Normal file
17
packages/babel-parser/test/fixtures/experimental/class-static-block/nested-control-flow/input.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
class C {
|
||||
static foo() {}
|
||||
static {
|
||||
while (this.foo) {
|
||||
if (this.foo) {
|
||||
break;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
class C2 {
|
||||
bar() {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user