swc/packages/swc-helpers/esm/_class_private_field_loose_base.js

9 lines
301 B
JavaScript
Raw Normal View History

export function _class_private_field_loose_base(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver;
2021-12-05 09:46:09 +03:00
}
export { _class_private_field_loose_base as _ };