mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
23 lines
301 B
JavaScript
23 lines
301 B
JavaScript
function classFactory() {
|
|
return class Foo {
|
|
#foo = "foo";
|
|
static #bar = "bar";
|
|
|
|
instance() {
|
|
return this.#foo;
|
|
}
|
|
|
|
static() {
|
|
return Foo.#bar;
|
|
}
|
|
|
|
static instance(inst) {
|
|
return inst.#foo;
|
|
}
|
|
|
|
static static() {
|
|
return Foo.#bar;
|
|
}
|
|
};
|
|
}
|