mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
19 lines
368 B
JavaScript
19 lines
368 B
JavaScript
class Base {
|
|
constructor(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
var _foo = /*#__PURE__*/new WeakSet();
|
|
class Derived extends Base {
|
|
constructor(...args) {
|
|
super(...args);
|
|
babelHelpers.classPrivateMethodInitSpec(this, _foo);
|
|
}
|
|
static get(obj) {
|
|
return babelHelpers.classPrivateMethodGet(obj, _foo, _foo2).call(obj);
|
|
}
|
|
}
|
|
function _foo2() {
|
|
return 'bar';
|
|
}
|