Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/public/instance-computed/input.js

raw
1 function test(x) {
2 class F {
3 [x] = 1;
4 constructor() {}
5 }
6
7 x = 'deadbeef';
8 expect(new F().foo).toBe(1);
9 x = 'wrong';
10 expect(new F().foo).toBe(1);
11 }
12
13 test('foo');