mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
28 lines
549 B
JavaScript
28 lines
549 B
JavaScript
const _excluded = ["y"];
|
|
var _class;
|
|
let result;
|
|
class C {}
|
|
_class = C;
|
|
babelHelpers.defineProperty(C, "x", "x");
|
|
babelHelpers.defineProperty(C, "y", "y");
|
|
babelHelpers.defineProperty(C, "z", "z");
|
|
var _x = {
|
|
writable: true,
|
|
value: _class
|
|
};
|
|
(() => {
|
|
var {
|
|
x
|
|
} = _class,
|
|
_babelHelpers$classSt = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _x),
|
|
{
|
|
y
|
|
} = _babelHelpers$classSt,
|
|
z = babelHelpers.objectWithoutProperties(_babelHelpers$classSt, _excluded);
|
|
result = {
|
|
x,
|
|
y,
|
|
z
|
|
};
|
|
})();
|