mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
9 lines
301 B
JavaScript
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 _ };
|