MCPcopy
hub / github.com/axios/axios / getPrototypeOf

Function getPrototypeOf

tests/unit/utils/isX.test.js:122–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 let proxy;
121 proxy = new Proxy({}, {
122 getPrototypeOf() {
123 calls += 1;
124 if (calls > 5) {
125 throw new Error('cycled');
126 }
127 return proxy;
128 }
129 });
130
131 expect(utils.hasOwnInPrototypeChain(proxy, 'missing')).toEqual(false);

Callers 5

hasOwnInPrototypeChainFunction · 0.85
isPlainObjectFunction · 0.85
isFormDataFunction · 0.85
toFlatObjectFunction · 0.85
utils.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected