* Private Static Class Fields Implementation * Redo testing without class transform for static private * Add a call() test for private static * Use Object.defineProperty in loose mode
15 lines
323 B
JavaScript
15 lines
323 B
JavaScript
class Foo {
|
|
static test() {
|
|
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _FooStatics, "bar");
|
|
}
|
|
|
|
test() {
|
|
return babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _FooStatics, "bar");
|
|
}
|
|
|
|
}
|
|
|
|
var _FooStatics = Object.create(null);
|
|
|
|
babelHelpers.defineProperty(_FooStatics, "bar", void 0);
|