mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
13 lines
317 B
JavaScript
13 lines
317 B
JavaScript
var _privateMethod = Symbol("privateMethod");
|
|
class Foo {
|
|
constructor() {
|
|
Object.defineProperty(this, _privateMethod, {
|
|
value: _privateMethod2
|
|
});
|
|
this.publicField = babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod]();
|
|
}
|
|
}
|
|
function _privateMethod2() {
|
|
return 42;
|
|
}
|