mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
181 B
JavaScript
14 lines
181 B
JavaScript
class Foo {
|
|
static #foo = function(x) {
|
|
return x;
|
|
}
|
|
|
|
test(x) {
|
|
return Foo.#foo(x);
|
|
}
|
|
}
|
|
|
|
const f = new Foo;
|
|
const test = f.test();
|
|
expect(f.test("bar")).toBe("bar");
|