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

Function makeInnerError

test/specs/singleton.spec.js:80–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79 it("can be called with just an inner error", () => {
80 function makeInnerError () {
81 let innerError = new SyntaxError("This is the inner error");
82 innerError.foo = "bar";
83 innerError.code = 404;
84 return innerError;
85 }
86
87 function newErrorWithInnerError (innerErr) {
88 return ono(innerErr);

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…