MCPcopy Index your code
hub / github.com/JS-DevTools/ono / constructor

Method constructor

test/specs/stack.spec.js:73–76  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

71 function makeOuterError (originalError) {
72 class MyCustomError extends Error {
73 constructor (message) {
74 super(message);
75 this.stack = undefined;
76 }
77 }
78
79 let myCustomOno = new Ono(MyCustomError);

Callers

nothing calls this directly

Calls 1

createFakeStackFunction · 0.85

Tested by

no test coverage detected