packages/babel-plugin-proposal-decorators/test/fixtures/2022-03-getters-and-setters--to-es2015/static-public/output.js
raw symbols SCIP| 1 | var _computedKey, _computedKey2, _initStatic; |
| 2 | const dec = () => {}; |
| 3 | _computedKey = 'b'; |
| 4 | _computedKey2 = 'b'; |
| 5 | class Foo { |
| 6 | static get a() { |
| 7 | return this.value; |
| 8 | } |
| 9 | static set a(v) { |
| 10 | this.value = v; |
| 11 | } |
| 12 | static get [_computedKey]() { |
| 13 | return this.value; |
| 14 | } |
| 15 | static set [_computedKey2](v) { |
| 16 | this.value = v; |
| 17 | } |
| 18 | } |
| 19 | (() => { |
| 20 | [_initStatic] = babelHelpers.applyDecs2203R(Foo, [[dec, 8, "a"], [dec, 9, "a"], [dec, 8, _computedKey], [dec, 9, _computedKey2]], []).e; |
| 21 | _initStatic(Foo); |
| 22 | })(); |
| 23 | babelHelpers.defineProperty(Foo, "value", 1); |