https://github.com/tc39/proposal-private-fields-in-in Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
37 lines
679 B
JavaScript
37 lines
679 B
JavaScript
let 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() {
|
|
let Nested = /*#__PURE__*/function () {
|
|
function Nested() {
|
|
babelHelpers.classCallCheck(this, Nested);
|
|
}
|
|
|
|
babelHelpers.createClass(Nested, [{
|
|
key: "test",
|
|
value: function test() {
|
|
_foo.has(this);
|
|
}
|
|
}]);
|
|
return Nested;
|
|
}();
|
|
|
|
_foo.has(this);
|
|
}
|
|
}]);
|
|
return Foo;
|
|
}();
|
|
|
|
var _foo = new WeakMap();
|