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

Function getOriginalFunction

packages/core/src/utils/object.ts:122–124  ·  view source on GitHub ↗
(func: WrappedFunction<T>)

Source from the content-addressed store, hash-verified

120 */
121// eslint-disable-next-line @typescript-eslint/ban-types
122export function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined {
123 return func.__sentry_original__;
124}
125
126/**
127 * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their

Callers 13

wrapMiddlewareWithSpanFunction · 0.90
patchAppRequestFunction · 0.90
setupOnceFunction · 0.90
patchHttpRequestFunction · 0.90
patchHttpGetFunction · 0.90
patchLayerFunction · 0.90
ensureIsWrappedFunction · 0.90
wrapFunction · 0.85
_wrapXHRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected