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

Function supportsErrorEvent

packages/core/src/utils/supports.ts:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * @returns Answer to the given question.
14 */
15export function supportsErrorEvent(): boolean {
16 try {
17 new ErrorEvent('');
18 return true;
19 } catch {
20 return false;
21 }
22}
23
24/**
25 * Tells whether current environment supports DOMError objects

Callers 1

is.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected