packages/babel-plugin-proposal-class-properties/test/fixtures/public/assignment/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 += 1; |
| 13 | this.foo = 2; |
| 14 | other.obj.foo++; |
| 15 | other.obj.foo += 1; |
| 16 | other.obj.foo = 2; |
| 17 | } |
| 18 | }]); |
| 19 | return Foo; |
| 20 | }(); |