Files
Huáng JùnliàngandGitHub 980dcb8b01 Memoize class binding when compiling private methods and static elements (#15701)
* add test cases

* fix: memoise class binding when lowering static elements and private methods

* update test fixtures

* update test fixtures
2023-07-19 17:59:21 -04:00

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
};
})();