packages/babel-plugin-proposal-decorators/test/fixtures/2022-03-duplicated-keys--to-es2015/computed-keys-same-ast/output.js
raw symbols SCIP| 1 | var _computedKey, _computedKey2, _initProto; |
| 2 | const dec = () => {}; |
| 3 | _computedKey = getKey(); |
| 4 | _computedKey2 = getKey(); |
| 5 | class Foo { |
| 6 | constructor(...args) { |
| 7 | _initProto(this); |
| 8 | } |
| 9 | [_computedKey]() { |
| 10 | return 1; |
| 11 | } |
| 12 | [_computedKey2]() { |
| 13 | return 2; |
| 14 | } |
| 15 | } |
| 16 | [_initProto] = babelHelpers.applyDecs2203R(Foo, [[dec, 2, _computedKey], [dec, 2, _computedKey2]], []).e; |