mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
32 lines
684 B
JavaScript
32 lines
684 B
JavaScript
var _class;
|
|
let result;
|
|
class C {}
|
|
_class = C;
|
|
var _x = {
|
|
writable: true,
|
|
value: "#x"
|
|
};
|
|
var _y = {
|
|
writable: true,
|
|
value: "#y"
|
|
};
|
|
babelHelpers.defineProperty(C, "a", "a");
|
|
babelHelpers.defineProperty(C, "b", "b");
|
|
babelHelpers.defineProperty(C, "c", "c");
|
|
(() => {
|
|
var _m, _m2;
|
|
var a, b, x, y, z;
|
|
({
|
|
[_m = _class.a]: a
|
|
} = _class), x = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _x), ({
|
|
[_m2 = _class.b]: b
|
|
} = _class), y = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _y), z = babelHelpers.objectWithoutProperties(_class, [_m, _m2].map(babelHelpers.toPropertyKey));
|
|
result = {
|
|
a,
|
|
b,
|
|
x,
|
|
y,
|
|
z
|
|
};
|
|
})();
|