fix(es/helpers): Make _classPrivateFieldLooseBase return receiver (#6770)

This commit is contained in:
magic-akari 2023-01-09 18:58:29 +08:00 committed by GitHub
parent a145bb5776
commit 1d147602c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ function _classPrivateFieldLooseBase(receiver, privateKey) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver[privateKey];
return receiver;
}

View File

@ -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;
}