packages/babel-plugin-proposal-class-properties/test/fixtures/private/extracted-this/output.js
raw| 1 | var foo = "bar"; |
| 2 | var _bar = /*#__PURE__*/new WeakMap(); |
| 3 | var _baz = /*#__PURE__*/new WeakMap(); |
| 4 | var Foo = /*#__PURE__*/babelHelpers.createClass(function Foo(_foo) { |
| 5 | "use strict"; |
| 6 | |
| 7 | babelHelpers.classCallCheck(this, Foo); |
| 8 | babelHelpers.classPrivateFieldInitSpec(this, _bar, { |
| 9 | writable: true, |
| 10 | value: this |
| 11 | }); |
| 12 | babelHelpers.classPrivateFieldInitSpec(this, _baz, { |
| 13 | writable: true, |
| 14 | value: foo |
| 15 | }); |
| 16 | }); |