Files
test-repo/tests/js/class-static-block/class-static-block.js
T
Sosuke Suzuki 13f3336bba Support class-static-block proposal (#9476)
* Support class-static-block proposal

* Update changelog
2020-10-23 20:09:07 +09:00

29 lines
274 B
JavaScript

class C {
static #x = 42;
static y;
static {
try {
this.y = doSomethingWith(this.#x);
} catch {
this.y = "unknown";
}
}
}
class Foo {
static {}
}
class A1 {
static {
foo;
}
}
class A2 {
static {
foo;
bar;
}
}