Files
Nicolò RibaudoandGitHub aa74c34398 Avoid printing unnecessary parens around object destructuring (#16712)
* Add test

* Avoid printing unnecessary parens around object destructuring

* Update fixtures
2024-08-02 13:48:02 +02:00

22 lines
238 B
JavaScript

let result;
class C {
static x = "x";
static y = "y";
static z = "z";
static #x = C;
static {
var x, y, z;
({
x
} = C), {
y,
...z
} = C.#x;
result = {
x,
y,
z
};
}
}