packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-duplicated-keys/computed-keys-same-value/output.js
raw symbols SCIP| 1 | var _computedKey, _computedKey2, _initProto; |
| 2 | const dec = () => {}; |
| 3 | _computedKey = getKeyI(); |
| 4 | _computedKey2 = getKeyJ(); |
| 5 | class Foo { |
| 6 | static { |
| 7 | [_initProto] = babelHelpers.applyDecs(this, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []); |
| 8 | } |
| 9 | constructor(...args) { |
| 10 | _initProto(this); |
| 11 | } |
| 12 | [_computedKey]() { |
| 13 | return 1; |
| 14 | } |
| 15 | [_computedKey2]() { |
| 16 | return 2; |
| 17 | } |
| 18 | } |