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

21 lines
343 B
JavaScript

var _class;
class C {}
_class = C;
babelHelpers.defineProperty(C, "a", "a");
var _x = {
writable: true,
value: void 0
};
(() => {
const a = "a";
for (const _ref of [_class]) {
const x = babelHelpers.classStaticPrivateFieldSpecGet(_ref, _class, _x),
{
[a]: _
} = _ref;
{
const a = "A";
}
}
})();