MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / supportsDOMException

Function supportsDOMException

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

Source from the content-addressed store, hash-verified

46 * @returns Answer to the given question.
47 */
48export function supportsDOMException(): boolean {
49 try {
50 new DOMException('');
51 return true;
52 } catch {
53 return false;
54 }
55}
56
57/**
58 * Tells whether current environment supports History API

Callers 1

is.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected