Extract computed keys from the class closure (#13600)

This commit is contained in:
Nicolò Ribaudo
2021-07-26 23:31:45 +02:00
committed by GitHub
parent 224a35c5c6
commit 790c5180d4
19 changed files with 142 additions and 58 deletions

View File

@@ -1,4 +1,4 @@
let A = /*#__PURE__*/function () {
let A = /*#__PURE__*/function (_x, _ref, _x2) {
"use strict";
function A() {
@@ -6,14 +6,14 @@ let A = /*#__PURE__*/function () {
}
babelHelpers.createClass(A, [{
key: x,
key: _x,
get: function () {}
}, {
key: (x = 2, 3),
key: _ref,
value: function () {}
}, {
key: x,
key: _x2,
set: function (_) {}
}]);
return A;
}();
}(x, (x = 2, 3), x);