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

Function getObjectClassName

packages/core/src/utils/eventbuilder.ts:103–110  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

101}
102
103function getObjectClassName(obj: unknown): string | undefined | void {
104 try {
105 const prototype: unknown | null = Object.getPrototypeOf(obj);
106 return prototype ? prototype.constructor.name : undefined;
107 } catch {
108 // ignore errors here
109 }
110}
111
112function getException(
113 client: Client,

Callers 1

getMessageForObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected