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