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

29 lines
766 B
JavaScript

var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
var _bar = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("bar");
let Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, _bar, {
writable: true,
value: "bar"
});
}
return babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
return Object.prototype.hasOwnProperty.call(babelHelpers.checkInRHS(this), _bar);
}
}], [{
key: "test",
value: function test() {
return Object.prototype.hasOwnProperty.call(babelHelpers.checkInRHS(Foo), _foo);
}
}]);
}();
Object.defineProperty(Foo, _foo, {
writable: true,
value: "foo"
});