Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/private/assignment/output.js

raw
1 var _foo = /*#__PURE__*/new WeakMap();
2 var Foo = /*#__PURE__*/function () {
3 "use strict";
4
5 function Foo() {
6 babelHelpers.classCallCheck(this, Foo);
7 babelHelpers.classPrivateFieldInitSpec(this, _foo, {
8 writable: true,
9 value: 0
10 });
11 }
12 babelHelpers.createClass(Foo, [{
13 key: "test",
14 value: function test(other) {
15 var _other$obj;
16 babelHelpers.classPrivateFieldSet(this, _foo, babelHelpers.classPrivateFieldGet(this, _foo) + 1);
17 babelHelpers.classPrivateFieldSet(this, _foo, 2);
18 babelHelpers.classPrivateFieldSet(_other$obj = other.obj, _foo, babelHelpers.classPrivateFieldGet(_other$obj, _foo) + 1);
19 babelHelpers.classPrivateFieldSet(other.obj, _foo, 2);
20 }
21 }]);
22 return Foo;
23 }();