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

14 lines
300 B
JavaScript

var _class;
var _foo = /*#__PURE__*/new WeakSet();
class A extends B {
constructor(...args) {
super(...args);
babelHelpers.classPrivateMethodInitSpec(this, _foo);
}
}
_class = A;
function _foo2() {
let _A;
babelHelpers.get(babelHelpers.getPrototypeOf(_class.prototype), "x", this);
}