swc/packages/helpers/esm/_class_private_field_loose_base.js

9 lines
301 B
JavaScript

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;
}
export { _class_private_field_loose_base as _ };