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

16 lines
273 B
JavaScript

let result;
class C {
static #x = "#x";
static y = "y";
static a = "a";
static b = "b";
static c = "c";
static {
var { #x: x, y, ...z } = C;
result = { x, y, z };
}
}
expect(result).toStrictEqual({
x: "#x", y: "y", z: { a: "a", b: "b", c: "c" }
});