MCPcopy Create free account
hub / github.com/JS-DevTools/ono / makeDOMError

Function makeDOMError

test/utils/make-dom-error.js:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4module.exports = makeDOMError;
5
6function makeDOMError () {
7 let name = "DOMError";
8 let message = "This is a DOM error";
9
10 try {
11 // Try creating a DOMError
12 return new DOMError(name, message);
13 }
14 catch (e) {
15 // DOMError is not supported, so return a POJO instead
16 return { name, message };
17 }
18}

Callers 1

singleton.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…