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

Function redactedDetails

ses.cjs:1596–1604  ·  view source on GitHub ↗
(template, ...args)

Source from the content-addressed store, hash-verified

1594 * @type {DetailsTag}
1595 */
1596const redactedDetails= (template, ...args)=> {
1597 // Keep in mind that the vast majority of calls to `details` creates
1598 // a details token that is never used, so this path must remain as fast as
1599 // possible. Hence we store what we've got with little processing, postponing
1600 // all the work to happen only if needed, for example, if an assertion fails.
1601 const detailsToken= freeze({ __proto__: DetailsTokenProto});
1602 weakmapSet(hiddenDetailsMap, detailsToken, { template, args});
1603 return detailsToken;
1604 };
1605freeze(redactedDetails);
1606
1607/**

Callers 3

unredactedDetailsFunction · 0.85
makeErrorFunction · 0.85
noteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected