Skip to content

Commit

Permalink
fix(es/helpers): Make _classPrivateFieldLooseBase return receiver (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Jan 9, 2023
1 parent a145bb5 commit 1d14760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -3,5 +3,5 @@ function _classPrivateFieldLooseBase(receiver, privateKey) {
throw new TypeError("attempted to use private field on non-instance");
}

return receiver[privateKey];
return receiver;
}
Expand Up @@ -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;
}

0 comments on commit 1d14760

Please sign in to comment.