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

26 lines
550 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 x = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _x),
y = babelHelpers.classStaticPrivateFieldSpecGet(_class, _class, _y),
z = Object.assign({}, (babelHelpers.objectDestructuringEmpty(_class), _class));
result = {
x,
y,
z
};
})();