Files
test-repo/tests/format/js/class-static-block/class-static-block.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
274 B
JavaScript
Raw Normal View History

2020-10-23 20:09:07 +09:00
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;
}
}