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

Function newErrorWithDOMErrorAndProps

test/specs/singleton.spec.js:206–213  ·  view source on GitHub ↗
(domError)

Source from the content-addressed store, hash-verified

204 function someMethod () { return this.code; }
205
206 function newErrorWithDOMErrorAndProps (domError) {
207 return ono(domError, {
208 code: 404,
209 text: "Not Found",
210 timestamp: now,
211 someMethod
212 });
213 }
214
215 let err = newErrorWithDOMErrorAndProps(makeDOMError());
216

Callers 1

singleton.spec.jsFile · 0.85

Calls 1

onoFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…