Files
2022-05-18 00:02:58 +02:00

14 lines
305 B
JavaScript

class C {
static #x = "x";
static #y = [];
static #z;
static self = C;
static #self() { return C }
static {
var [{ #x: x } = C.self, { #y: [,{ #z: y = C.#self() } = C.self ] },,z = y.#y] = [this,this];
expect(x).toBe("x");
expect(y).toBe(C);
expect(z).toStrictEqual([]);
}
}