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.

10 lines
311 B

4 years ago
  1. export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
  2. if (receiver !== classConstructor) {
  3. throw new TypeError("Private static access of wrong provenance");
  4. }
  5. if (descriptor.get) {
  6. return descriptor.get.call(receiver);
  7. }
  8. return descriptor.value;
  9. }