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

33 lines
1.0 KiB
JavaScript

var _foo = /*#__PURE__*/new WeakMap();
var _bar = /*#__PURE__*/new WeakMap();
let Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
babelHelpers.classPrivateFieldInitSpec(this, _foo, 1);
babelHelpers.classPrivateFieldInitSpec(this, _bar, 1);
}
return babelHelpers.createClass(Foo, [{
key: "test",
value: function test() {
var _bar2 = /*#__PURE__*/new WeakMap();
let Nested = /*#__PURE__*/function () {
function Nested() {
babelHelpers.classCallCheck(this, Nested);
babelHelpers.classPrivateFieldInitSpec(this, _bar2, 2);
}
return babelHelpers.createClass(Nested, [{
key: "test",
value: function test() {
babelHelpers.classPrivateFieldGet2(_foo, this);
babelHelpers.classPrivateFieldGet2(_bar2, this);
}
}]);
}();
babelHelpers.classPrivateFieldGet2(_foo, this);
babelHelpers.classPrivateFieldGet2(_bar, this);
}
}]);
}();