Debian Codegraph @

packages/babel-plugin-proposal-destructuring-private/test/fixtures/assignment--es2015/object-rest/exec.js

raw
1 let result;
2 class C {
3 static #x = "#x";
4 static #y = "#y";
5 static a = "a";
6 static b = "b";
7 static c = "c";
8 static {
9 var a, b, x, y, z;
10 ({ [C.a]: a, #x: x, [C.b]: b, #y: y, ...z } = C);
11 result = { a, b, x, y, z };
12 }
13 }
14 expect(result).toStrictEqual({
15 a: "a", b: "b", x: "#x", y: "#y", z: { c: "c" }
16 });