MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / prepareStackTrace

Function prepareStackTrace

ses.cjs:7438–7447  ·  view source on GitHub ↗
(error, sst)

Source from the content-addressed store, hash-verified

7436 return stackString;
7437 },
7438 prepareStackTrace(error, sst) {
7439 if( errorTaming=== 'unsafe') {
7440 const stackString= stackStringFromSST(error, sst);
7441 weakmapSet(stackInfos, error, { stackString});
7442 return `${error}${stackString}`;
7443 }else {
7444 weakmapSet(stackInfos, error, { callSites: sst});
7445 return '';
7446 }
7447 }};
7448
7449
7450 // A prepareFn is a prepareStackTrace function.

Callers

nothing calls this directly

Calls 2

stackStringFromSSTFunction · 0.85
safeV8SSTFunction · 0.85

Tested by

no test coverage detected