Files
babel/packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/assignment/output.js
2020-05-30 22:38:15 +02:00

15 lines
282 B
JavaScript

var _privateMethod = new WeakSet();
class Foo {
constructor() {
_privateMethod.add(this);
this.publicField = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this);
}
}
var _privateMethod2 = function _privateMethod2() {
return 42;
};