Extract computed keys from the class closure (#13600)
This commit is contained in:
@@ -20,7 +20,7 @@ var Foo = /*#__PURE__*/function () {
|
||||
|
||||
_babelHelpers$classPr = babelHelpers.classPrivateFieldLooseBase(this, _foo2)[_foo2];
|
||||
|
||||
var Nested = /*#__PURE__*/function () {
|
||||
var Nested = /*#__PURE__*/function (_babelHelpers$classPr2) {
|
||||
function Nested() {
|
||||
babelHelpers.classCallCheck(this, Nested);
|
||||
Object.defineProperty(this, _foo2, {
|
||||
@@ -30,11 +30,11 @@ var Foo = /*#__PURE__*/function () {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Nested, [{
|
||||
key: _babelHelpers$classPr,
|
||||
key: _babelHelpers$classPr2,
|
||||
value: function () {}
|
||||
}]);
|
||||
return Nested;
|
||||
}();
|
||||
}(_babelHelpers$classPr);
|
||||
|
||||
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
|
||||
}
|
||||
|
||||
@@ -14,19 +14,17 @@ var Foo = /*#__PURE__*/function () {
|
||||
babelHelpers.createClass(Foo, [{
|
||||
key: "test",
|
||||
value: function test() {
|
||||
var _this = this;
|
||||
|
||||
var Nested = /*#__PURE__*/function () {
|
||||
var Nested = /*#__PURE__*/function (_babelHelpers$classPr) {
|
||||
function Nested() {
|
||||
babelHelpers.classCallCheck(this, Nested);
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Nested, [{
|
||||
key: babelHelpers.classPrivateFieldLooseBase(_this, _foo)[_foo],
|
||||
key: _babelHelpers$classPr,
|
||||
value: function () {}
|
||||
}]);
|
||||
return Nested;
|
||||
}();
|
||||
}(babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo]);
|
||||
|
||||
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo];
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ var Foo = /*#__PURE__*/function () {
|
||||
|
||||
_babelHelpers$classPr = babelHelpers.classPrivateFieldGet(this, _foo2);
|
||||
|
||||
var Nested = /*#__PURE__*/function () {
|
||||
var Nested = /*#__PURE__*/function (_babelHelpers$classPr2) {
|
||||
function Nested() {
|
||||
babelHelpers.classCallCheck(this, Nested);
|
||||
|
||||
@@ -32,11 +32,11 @@ var Foo = /*#__PURE__*/function () {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Nested, [{
|
||||
key: _babelHelpers$classPr,
|
||||
key: _babelHelpers$classPr2,
|
||||
value: function () {}
|
||||
}]);
|
||||
return Nested;
|
||||
}();
|
||||
}(_babelHelpers$classPr);
|
||||
|
||||
babelHelpers.classPrivateFieldGet(this, _foo);
|
||||
}
|
||||
|
||||
@@ -15,19 +15,17 @@ var Foo = /*#__PURE__*/function () {
|
||||
babelHelpers.createClass(Foo, [{
|
||||
key: "test",
|
||||
value: function test() {
|
||||
var _this = this;
|
||||
|
||||
var Nested = /*#__PURE__*/function () {
|
||||
var Nested = /*#__PURE__*/function (_babelHelpers$classPr) {
|
||||
function Nested() {
|
||||
babelHelpers.classCallCheck(this, Nested);
|
||||
}
|
||||
|
||||
babelHelpers.createClass(Nested, [{
|
||||
key: babelHelpers.classPrivateFieldGet(_this, _foo),
|
||||
key: _babelHelpers$classPr,
|
||||
value: function () {}
|
||||
}]);
|
||||
return Nested;
|
||||
}();
|
||||
}(babelHelpers.classPrivateFieldGet(this, _foo));
|
||||
|
||||
babelHelpers.classPrivateFieldGet(this, _foo);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ _ref3 = /regex/;
|
||||
_baz = baz;
|
||||
_ref4 = `template${expression}`;
|
||||
|
||||
var MyClass = /*#__PURE__*/function () {
|
||||
var MyClass = /*#__PURE__*/function (_computed3, _computed4, _ref5) {
|
||||
"use strict";
|
||||
|
||||
function MyClass() {
|
||||
@@ -36,20 +36,20 @@ var MyClass = /*#__PURE__*/function () {
|
||||
get: function () {},
|
||||
set: function (value) {}
|
||||
}, {
|
||||
key: _computed,
|
||||
key: _computed3,
|
||||
get: function () {}
|
||||
}, {
|
||||
key: _computed2,
|
||||
key: _computed4,
|
||||
set: function (value) {}
|
||||
}, {
|
||||
key: _ref2,
|
||||
key: _ref5,
|
||||
value: function () {}
|
||||
}], [{
|
||||
key: "10",
|
||||
value: function _() {}
|
||||
}]);
|
||||
return MyClass;
|
||||
}();
|
||||
}(_computed, _computed2, _ref2);
|
||||
|
||||
MyClass[_one] = "test";
|
||||
MyClass[2 * 4 + 7] = "247";
|
||||
|
||||
@@ -15,7 +15,7 @@ _ref3 = /regex/;
|
||||
_baz = baz;
|
||||
_ref4 = `template${expression}`;
|
||||
|
||||
var MyClass = /*#__PURE__*/function () {
|
||||
var MyClass = /*#__PURE__*/function (_computed3, _computed4, _ref5) {
|
||||
"use strict";
|
||||
|
||||
function MyClass() {
|
||||
@@ -36,20 +36,20 @@ var MyClass = /*#__PURE__*/function () {
|
||||
get: function () {},
|
||||
set: function (value) {}
|
||||
}, {
|
||||
key: _computed,
|
||||
key: _computed3,
|
||||
get: function () {}
|
||||
}, {
|
||||
key: _computed2,
|
||||
key: _computed4,
|
||||
set: function (value) {}
|
||||
}, {
|
||||
key: _ref2,
|
||||
key: _ref5,
|
||||
value: function () {}
|
||||
}], [{
|
||||
key: "10",
|
||||
value: function _() {}
|
||||
}]);
|
||||
return MyClass;
|
||||
}();
|
||||
}(_computed, _computed2, _ref2);
|
||||
|
||||
babelHelpers.defineProperty(MyClass, _one, "test");
|
||||
babelHelpers.defineProperty(MyClass, 2 * 4 + 7, "247");
|
||||
|
||||
@@ -4,7 +4,7 @@ var _class, _descriptor;
|
||||
|
||||
function dec() {}
|
||||
|
||||
let A = (_class = (_Symbol$search = Symbol.search, /*#__PURE__*/function () {
|
||||
let A = (_class = (_Symbol$search = Symbol.search, /*#__PURE__*/function (_Symbol$search2) {
|
||||
"use strict";
|
||||
|
||||
function A() {
|
||||
@@ -13,11 +13,11 @@ let A = (_class = (_Symbol$search = Symbol.search, /*#__PURE__*/function () {
|
||||
}
|
||||
|
||||
babelHelpers.createClass(A, [{
|
||||
key: _Symbol$search,
|
||||
key: _Symbol$search2,
|
||||
value: function () {}
|
||||
}]);
|
||||
return A;
|
||||
}()), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class.prototype, "a", [dec], {
|
||||
}(_Symbol$search)), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class.prototype, "a", [dec], {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
|
||||
Reference in New Issue
Block a user