packages/babel-plugin-proposal-class-properties/test/fixtures/private/declaration-order/output.js
raw| 1 | var _x = /*#__PURE__*/new WeakMap(); |
| 2 | var C = /*#__PURE__*/babelHelpers.createClass(function C() { |
| 3 | "use strict"; |
| 4 | |
| 5 | babelHelpers.classCallCheck(this, C); |
| 6 | babelHelpers.defineProperty(this, "y", babelHelpers.classPrivateFieldGet(this, _x)); |
| 7 | babelHelpers.classPrivateFieldInitSpec(this, _x, { |
| 8 | writable: true, |
| 9 | value: void 0 |
| 10 | }); |
| 11 | }); |
| 12 | expect(() => { |
| 13 | new C(); |
| 14 | }).toThrow(); |