Nicolò Ribaudo 5979b0669b
Merge class features plugins
* Create @babel/plugin-class-features

* Move class properties transformation logic to enanced-classes (#8130)
2018-11-20 21:14:35 +01:00

25 lines
353 B
JavaScript

class Foo {
constructor() {
_bar.set(this, {
writable: true,
value: "bar"
});
}
static test() {
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _foo);
}
test() {
return babelHelpers.classPrivateFieldGet(this, _bar);
}
}
var _bar = new WeakMap();
var _foo = {
writable: true,
value: "foo"
};