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>
23 lines
432 B
JavaScript
23 lines
432 B
JavaScript
let Foo = /*#__PURE__*/function () {
|
|
"use strict";
|
|
|
|
function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
}
|
|
|
|
babelHelpers.createClass(Foo, [{
|
|
key: "test",
|
|
value: function test(other) {
|
|
return Object.prototype.hasOwnProperty.call(other, _foo);
|
|
}
|
|
}]);
|
|
return Foo;
|
|
}();
|
|
|
|
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
|
|
|
|
Object.defineProperty(Foo, _foo, {
|
|
writable: true,
|
|
value: 1
|
|
});
|