GT2/Ejectable/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js

7 lines
247 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to " + action + " private field on non-instance");
}
return privateMap.get(receiver);
}