packages/babel-plugin-proposal-class-properties/test/fixtures/public/instance-computed/output.js
raw| 1 | function test(x) { |
| 2 | var _x; |
| 3 | _x = x; |
| 4 | var F = /*#__PURE__*/babelHelpers.createClass(function F() { |
| 5 | "use strict"; |
| 6 | |
| 7 | babelHelpers.classCallCheck(this, F); |
| 8 | babelHelpers.defineProperty(this, _x, 1); |
| 9 | }); |
| 10 | x = 'deadbeef'; |
| 11 | expect(new F().foo).toBe(1); |
| 12 | x = 'wrong'; |
| 13 | expect(new F().foo).toBe(1); |
| 14 | } |
| 15 | test('foo'); |