MCPcopy Create free account
hub / github.com/browserbase/stagehand / readCallsites

Function readCallsites

packages/docs/scripts/runtimePaths.js:29–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27};
28
29const readCallsites = () => {
30 const previousPrepare = Error.prepareStackTrace;
31 try {
32 Error.prepareStackTrace = (_, stack) => stack;
33 return new Error().stack ?? [];
34 } finally {
35 Error.prepareStackTrace = previousPrepare;
36 }
37};
38
39const readCallsitePath = (callsite) => {
40 const rawPath =

Callers 1

resolveCallerFilePathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected