UNPKG

347 BJavaScriptView Raw
1function _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
13module.exports = _classStaticPrivateFieldSpecGet;
\No newline at end of file