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

Function isWeakMapKey

packages/cloudflare/src/instrument.ts:22–24  ·  view source on GitHub ↗

* Check if a value can be used as a WeakMap key. * WeakMap keys must be objects or non-registered symbols.

(value: unknown)

Source from the content-addressed store, hash-verified

20 * WeakMap keys must be objects or non-registered symbols.
21 */
22function isWeakMapKey(value: unknown): value is object {
23 return (typeof value === 'object' && value !== null) || typeof value === 'function';
24}
25
26/**
27 * Mark an object as instrumented, storing the instrumented version.

Callers 2

markAsInstrumentedFunction · 0.85
getInstrumentedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected