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
21 lines
341 B
JavaScript
21 lines
341 B
JavaScript
var _class;
|
|
var x;
|
|
var _x = /*#__PURE__*/new WeakMap();
|
|
class C {
|
|
constructor() {
|
|
babelHelpers.classPrivateFieldInitSpec(this, _x, {
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
}
|
|
}
|
|
_class = C;
|
|
(() => {
|
|
x = "x";
|
|
try {
|
|
throw new _class();
|
|
} catch (_e) {
|
|
let x = babelHelpers.classPrivateFieldGet(_e, _x);
|
|
}
|
|
})();
|