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

Function getConstructorName

packages/core/src/utils/normalize.ts:248–252  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

246/* eslint-enable complexity */
247
248function getConstructorName(value: unknown): string {
249 const prototype: Prototype | null = Object.getPrototypeOf(value);
250
251 return prototype?.constructor ? prototype.constructor.name : 'null prototype';
252}
253
254/** Calculates bytes size of input string */
255function utf8Length(value: string): number {

Callers 1

stringifyValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected