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]>
22 lines
470 B
JavaScript
22 lines
470 B
JavaScript
let result;
|
|
class C {
|
|
static #y = "y";
|
|
static #z = "self";
|
|
static #x;
|
|
static b = "b";
|
|
static self = C;
|
|
static #self = C;
|
|
static {
|
|
let cloned, b, y, yy, yy2;
|
|
({ #x: { [C.#z]: { b, #x: y = (C.b = "bb", C.#self.#y) }, #x: yy = (delete C.self, { ...cloned } = C, C.#y = "yy") } = C.#self, #y: yy2 } = C);
|
|
result = { b, y, yy, cloned, yy2 };
|
|
}
|
|
}
|
|
expect(result).toStrictEqual({
|
|
b: "b",
|
|
y: "y",
|
|
yy: "yy",
|
|
cloned: { b: "bb" },
|
|
yy2: "yy"
|
|
})
|