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

25 lines
420 B
JavaScript

let result;
class C {
static #x = "#x";
static #y = "#y";
static a = "a";
static b = "b";
static c = "c";
static {
var _m, _m2;
var a, b, x, y, z;
({
[_m = C.a]: a
} = C), x = C.#x, {
[_m2 = C.b]: b
} = C, y = C.#y, z = babelHelpers.objectWithoutProperties(C, [_m, _m2].map(babelHelpers.toPropertyKey));
result = {
a,
b,
x,
y,
z
};
}
}