classStaticPrivateFieldSpecGet.js 276 B

123456789
  1. function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
  2. if (receiver !== classConstructor) {
  3. throw new TypeError("Private static access of wrong provenance");
  4. }
  5. return descriptor.value;
  6. }
  7. module.exports = _classStaticPrivateFieldSpecGet;