Files
2022-10-09 17:21:02 +02:00

20 lines
383 B
JavaScript

class Base {
constructor(obj) {
return obj;
}
}
let counter = 0;
var _foo = /*#__PURE__*/new WeakMap();
class Derived extends Base {
constructor(...args) {
super(...args);
babelHelpers.classPrivateFieldInitSpec(this, _foo, {
writable: true,
value: ++counter
});
}
static get(obj) {
return babelHelpers.classPrivateFieldGet(obj, _foo);
}
}