* Fix nested classes reference private fields * Process only visible private fields when redeclaring * Comments * Skip class traversal if there are no private fields * Handle redeclared private field in computed key
37 lines
732 B
JavaScript
37 lines
732 B
JavaScript
var Foo = /*#__PURE__*/function () {
|
|
"use strict";
|
|
|
|
function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_foo.set(this, {
|
|
writable: true,
|
|
value: 1
|
|
});
|
|
}
|
|
|
|
babelHelpers.createClass(Foo, [{
|
|
key: "test",
|
|
value: function test() {
|
|
var _this = this;
|
|
|
|
var Nested = /*#__PURE__*/function () {
|
|
function Nested() {
|
|
babelHelpers.classCallCheck(this, Nested);
|
|
}
|
|
|
|
babelHelpers.createClass(Nested, [{
|
|
key: babelHelpers.classPrivateFieldGet(_this, _foo),
|
|
value: function () {}
|
|
}]);
|
|
return Nested;
|
|
}();
|
|
|
|
babelHelpers.classPrivateFieldGet(this, _foo);
|
|
}
|
|
}]);
|
|
return Foo;
|
|
}();
|
|
|
|
var _foo = new WeakMap();
|