MCPcopy Index your code
hub / github.com/deployd/deployd / wrapError

Function wrapError

lib/script.js:183–188  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

181};
182
183function wrapError(err) {
184 if (err && err.__proto__ && global[err.__proto__.name]) {
185 err.__proto__ = global[err.__proto__.name].prototype;
186 }
187 return err;
188}
189
190function isPromise(obj) {
191 //maybe not the best of all checks but at least it's compliant to Promises/A+

Callers 3

script.jsFile · 0.85
wrapPromiseFunction · 0.85
wrapAsyncFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected