mirror of
https://github.com/swc-project/swc.git
synced 2024-09-21 05:39:06 +03:00
fix(es/helpers): Make _classPrivateFieldLooseBase
return receiver (#6770)
This commit is contained in:
parent
a145bb5776
commit
1d147602c0
@ -3,5 +3,5 @@ function _classPrivateFieldLooseBase(receiver, privateKey) {
|
||||
throw new TypeError("attempted to use private field on non-instance");
|
||||
}
|
||||
|
||||
return receiver[privateKey];
|
||||
return receiver;
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ export default function _classPrivateFieldBase(receiver, privateKey) {
|
||||
throw new TypeError("attempted to use private field on non-instance");
|
||||
}
|
||||
|
||||
return receiver[privateKey];
|
||||
return receiver;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user