mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
19 lines
391 B
JavaScript
19 lines
391 B
JavaScript
class Base {
|
|
constructor(obj) {
|
|
return obj;
|
|
}
|
|
}
|
|
var _Derived_brand = /*#__PURE__*/new WeakSet();
|
|
class Derived extends Base {
|
|
constructor(...args) {
|
|
super(...args);
|
|
babelHelpers.classPrivateMethodInitSpec(this, _Derived_brand);
|
|
}
|
|
static get(obj) {
|
|
return babelHelpers.assertClassBrand(_Derived_brand, obj, _foo).call(obj);
|
|
}
|
|
}
|
|
function _foo() {
|
|
return 'bar';
|
|
}
|