packages/babel-plugin-proposal-class-properties/test/fixtures/public/update/output.js
raw| 1 | var Foo = /*#__PURE__*/function () { |
| 2 | "use strict"; |
| 3 | |
| 4 | function Foo() { |
| 5 | babelHelpers.classCallCheck(this, Foo); |
| 6 | babelHelpers.defineProperty(this, "foo", 0); |
| 7 | } |
| 8 | babelHelpers.createClass(Foo, [{ |
| 9 | key: "test", |
| 10 | value: function test(other) { |
| 11 | this.foo++; |
| 12 | ++this.foo; |
| 13 | other.obj.foo++; |
| 14 | ++other.obj.foo; |
| 15 | } |
| 16 | }]); |
| 17 | return Foo; |
| 18 | }(); |