mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +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 _ };
|