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]>
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
let r1, r2, r3;
|
|
class C {
|
|
static #x = { b: 2 };
|
|
static {
|
|
let a, b;
|
|
r1 = ({ a = 1, #x: { b }} = C);
|
|
(function f(r = ({ #x: { b }} = C)) { r2 = r })();
|
|
((g = (r = ({ #x: { a } } = { #x: { b }} = C)) => { r3 = r }) => g())();
|
|
}
|
|
}
|
|
expect(r1).toBe(C);
|
|
expect(r2).toBe(C);
|
|
expect(r3).toBe(C);
|