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

18 lines
286 B
JavaScript

var _class, _temp;
class Foo extends (_temp = _class = class {}, (() => {
_class.bar = 42;
})(), _temp) {}
Foo.bar = 21;
(() => {
var _class2, _temp2;
Foo.foo = (_temp2 = _class2 = class {}, (() => {
_class2.bar = 42;
})(), _temp2).bar;
})();
expect(Foo.foo).toBe(42);