swc/ecmascript/transforms/proposal/tests/private-in-object/.private-loose/method/output.js

23 lines
464 B
JavaScript
Raw Normal View History

var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, _foo, {
value: _foo2
});
}
babelHelpers.createClass(Foo, [{
key: "test",
value: function test(other) {
return Object.prototype.hasOwnProperty.call(other, _foo);
}
}]);
return Foo;
}();
function _foo2() {}