mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
15 lines
421 B
JavaScript
15 lines
421 B
JavaScript
var counter = 0;
|
|
var _privateFieldValue = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateFieldValue");
|
|
class Foo {
|
|
constructor() {
|
|
Object.defineProperty(this, _privateFieldValue, {
|
|
get: _get_privateFieldValue,
|
|
set: void 0
|
|
});
|
|
babelHelpers.classPrivateFieldLooseBase(this, _privateFieldValue)[_privateFieldValue] = ++counter;
|
|
}
|
|
}
|
|
function _get_privateFieldValue() {
|
|
return 42;
|
|
}
|