Projekt

Obecné

Profil

Stáhnout (347 Bajtů) Statistiky
| Větev: | Revize:
1
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
2
  if (receiver !== classConstructor) {
3
    throw new TypeError("Private static access of wrong provenance");
4
  }
5

    
6
  if (descriptor.get) {
7
    return descriptor.get.call(receiver);
8
  }
9

    
10
  return descriptor.value;
11
}
12

    
13
module.exports = _classStaticPrivateFieldSpecGet;
(21-21/80)