Files
liuxingbaoyuandGitHub 0d29e85ffc Reduce the use of class names (#16326)
Use the return value of the createClass helper
2024-03-07 17:11:56 -05:00

22 lines
676 B
JavaScript

var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, _foo, {
writable: true,
value: 0
});
}
return babelHelpers.createClass(Foo, [{
key: "test",
value: function test(other) {
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo] += 1;
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo] = 2;
babelHelpers.classPrivateFieldLooseBase(other.obj, _foo)[_foo] += 1;
babelHelpers.classPrivateFieldLooseBase(other.obj, _foo)[_foo] = 2;
}
}]);
}();