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]>
16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
let result;
|
|
class C {
|
|
static #x = "#x";
|
|
static #y = "#y";
|
|
static a = "a";
|
|
static b = "b";
|
|
static c = "c";
|
|
static {
|
|
var { [C.a]: a, #x: x, [C.b]: b, #y: y, ...z } = C;
|
|
result = { a, b, x, y, z };
|
|
}
|
|
}
|
|
expect(result).toStrictEqual({
|
|
a: "a", b: "b", x: "#x", y: "#y", z: { c: "c" }
|
|
});
|