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

10 lines
123 B
JavaScript

class Foo {}
babelHelpers.defineProperty(Foo, "bar", 42);
(() => {
Foo.foo = Foo.bar;
})();
expect(Foo.foo).toBe(42);