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

Function shortenCallSiteString

ses.cjs:7330–7338  ·  view source on GitHub ↗
(callSiteString)

Source from the content-addressed store, hash-verified

7328// Exported only so it can be unit tested.
7329// TODO Move so that it applies not just to v8.
7330const shortenCallSiteString= (callSiteString)=>{
7331 for( const filter of CALLSITE_PATTERNS) {
7332 const match= regexpExec(filter, callSiteString);
7333 if( match) {
7334 return arrayJoin(arraySlice(match, 1), '');
7335 }
7336 }
7337 return callSiteString;
7338 };$h‍_once.shortenCallSiteString(shortenCallSiteString);
7339
7340const tameV8ErrorConstructor= (
7341 OriginalError,

Callers 1

callSiteStringifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected