Debian Codegraph @

packages/babel-plugin-proposal-destructuring-private/test/fixtures/ordering/object-pattern-with-rest/exec.js

raw
1 var log = [];
2
3 function push(x, y = x) { log.push(x); return y; }
4
5 class C {
6 static get a() { push(1) }
7 static get b() { push(6) }
8 static get c() { push(10) }
9 static get d() { push(13) }
10 static get #x() { push(3) };
11 static get #y() { return push(8, C) };
12 static get #z() { push(15) }
13 static {
14 var { [push(0, "a")]: a = push(2), #x: {
15 [push(5, "b")]: b = push(7),
16 #y: y = push(-1),
17 [push(9, "c")]: c = push(11)
18 } = push(4, C), [push(12, "d")]: d = push(14), #z: z = push(16), ...f } = C;
19 }
20 }
21
22 var nums = Array.from({ length: 17 }, (_, i) => i);
23 expect(log).toStrictEqual(nums);