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>
25 lines
398 B
JavaScript
25 lines
398 B
JavaScript
let Foo = /*#__PURE__*/function () {
|
|
"use strict";
|
|
|
|
function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_foo.set(this, {
|
|
get: _get_foo,
|
|
set: void 0
|
|
});
|
|
}
|
|
|
|
babelHelpers.createClass(Foo, [{
|
|
key: "test",
|
|
value: function test(other) {
|
|
return _foo.has(other);
|
|
}
|
|
}]);
|
|
return Foo;
|
|
}();
|
|
|
|
var _foo = new WeakMap();
|
|
|
|
var _get_foo = function () {};
|