You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
316 B

4 years ago
  1. export default function _classPrivateFieldGet(receiver, privateMap) {
  2. var descriptor = privateMap.get(receiver);
  3. if (!descriptor) {
  4. throw new TypeError("attempted to get private field on non-instance");
  5. }
  6. if (descriptor.get) {
  7. return descriptor.get.call(receiver);
  8. }
  9. return descriptor.value;
  10. }