mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
22 lines
799 B
JavaScript
22 lines
799 B
JavaScript
var _privateField = /*#__PURE__*/new WeakMap();
|
|
var _Cl_brand = /*#__PURE__*/new WeakSet();
|
|
class Cl {
|
|
constructor() {
|
|
babelHelpers.classPrivateMethodInitSpec(this, _Cl_brand);
|
|
babelHelpers.classPrivateFieldInitSpec(this, _privateField, "top secret string");
|
|
this.publicField = "not secret string";
|
|
}
|
|
publicGetPrivateField() {
|
|
return babelHelpers.classPrivateGetter(_Cl_brand, this, _get_privateFieldValue);
|
|
}
|
|
publicSetPrivateField(newValue) {
|
|
babelHelpers.classPrivateSetter(_Cl_brand, _set_privateFieldValue, this, newValue);
|
|
}
|
|
}
|
|
function _get_privateFieldValue(_this) {
|
|
return babelHelpers.classPrivateFieldGet2(_privateField, _this);
|
|
}
|
|
function _set_privateFieldValue(_this2, newValue) {
|
|
babelHelpers.classPrivateFieldSet2(_privateField, _this2, newValue);
|
|
}
|