Nicolò Ribaudo 8732dd39c6
Compile static blocks without the intermediate priv field step (#13297)
* Remove ordering constraints for `static-blocks` plugin

* Handle static blocks directly in `helper-create-class-features-plugin`
2021-05-14 11:35:59 -04:00

13 lines
170 B
JavaScript

class Foo {}
var _ = {
writable: true,
value: 42
};
(() => {
Foo.foo = babelHelpers.classStaticPrivateFieldSpecGet(Foo, Foo, _);
})();
expect(Foo.foo).toBe(42);