UNPKG

311 BJavaScriptView Raw
1export default 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}
\No newline at end of file