mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Justin Ridgewell <[email protected]>
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
class C {
|
|
static #x = "x";
|
|
static #y = [];
|
|
static #z;
|
|
static self = C;
|
|
static #self() { return C }
|
|
static {
|
|
let x, y, z;
|
|
[{ #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([]);
|
|
}
|
|
}
|