9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
|
|
if (typeof globalThis.DOMException === 'undefined') {
|
||
|
|
(globalThis as any).DOMException = class DOMException extends Error {
|
||
|
|
constructor(message?: string, name?: string) {
|
||
|
|
super(message);
|
||
|
|
this.name = name || 'DOMException';
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|