MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / parseStackFrames

Function parseStackFrames

packages/core/src/utils/eventbuilder.ts:18–20  ·  view source on GitHub ↗
(stackParser: StackParser, error: Error)

Source from the content-addressed store, hash-verified

16 * Extracts stack frames from the error.stack string
17 */
18export function parseStackFrames(stackParser: StackParser, error: Error): StackFrame[] {
19 return stackParser(error.stack || '', 1);
20}
21
22function hasSentryFetchUrlHost(error: unknown): error is Error & { __sentry_fetch_url_host__: string } {
23 return isError(error) && '__sentry_fetch_url_host__' in error && typeof error.__sentry_fetch_url_host__ === 'string';

Callers 3

exceptionFromErrorFunction · 0.70
eventFromMessageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected