MCPcopy Index your code
hub / github.com/nodejs/node / mapCallSite

Function mapCallSite

lib/util.js:534–542  ·  view source on GitHub ↗

* * The call site array to map * @param {CallSite[]} callSites * Array of objects with the reconstructed call site * @returns {CallSite[]}

(callSites)

Source from the content-addressed store, hash-verified

532 * @returns {CallSite[]}
533 */
534function mapCallSite(callSites) {
535 const result = [];
536 for (let i = 0; i < callSites.length; ++i) {
537 const callSite = callSites[i];
538 const found = reconstructCallSite(callSite);
539 ArrayPrototypePush(result, found ?? callSite);
540 }
541 return result;
542}
543
544/**
545 * @typedef {object} CallSiteOptions // The call site options

Callers 1

getCallSitesFunction · 0.85

Calls 1

reconstructCallSiteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…