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

Function makeNonError

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

Source from the content-addressed store, hash-verified

282 function someMethod () { return this.code; }
283
284 function makeNonError () {
285 return {
286 code: "ERESET",
287 name: "TypeError",
288 message: "This looks like an error, but it's not one",
289 stack: createFakeStack(
290 { fn: "foo", file: "foo.js", line: 15, col: 27 },
291 { fn: "bar", file: "bar.js", line: 86, col: 12 }
292 ),
293 foo: "bar",
294 };
295 }
296
297 function newErrorWithNonErrorAndProps (nonError) {
298 return ono(nonError, {

Callers 1

singleton.spec.jsFile · 0.85

Calls 1

createFakeStackFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…