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
347 B

4 years ago
  1. 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. }
  10. module.exports = _classStaticPrivateFieldSpecGet;