2021-03-12 23:29:55 +01:00

13 lines
183 B
JavaScript

class Base {
constructor() {
this.Foo = class {
static #_ = (() => {
this.foo = new.target;
})();
};
}
}
expect(new Base().Foo.foo).toBe(undefined);