mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 19:22:32 +03:00
a13a78e3fe
**BREAKING CHANGE:** Breaking changes for `@swc/helpers`. A new major version `0.5.0` is required. **Related issue:** - Closes https://github.com/swc-project/swc/issues/7157
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 _ };
|