MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / isEventLike

Function isEventLike

static/sentry.ts:59–61  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

57}
58
59function isEventLike(value: unknown): value is Event {
60 return value instanceof Event || value?.constructor?.name === 'Event' || value?.constructor?.name === 'CustomEvent';
61}
62
63function formatEventRejection(evt: Event): string {
64 const targetName = evt.target?.constructor?.name ?? 'unknown';

Callers 1

SetupSentryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected