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

Function bare

ses.cjs:1510–1519  ·  view source on GitHub ↗
(payload, spaces=  undefined)

Source from the content-addressed store, hash-verified

1508 * @type {AssertQuote}
1509 */
1510const bare= (payload, spaces= undefined)=> {
1511 if( typeof payload!== 'string'|| !regexpTest(canBeBare, payload)) {
1512 return quote(payload, spaces);
1513 }
1514 const result= freeze({
1515 toString: freeze(()=> payload)});
1516
1517 weakmapSet(declassifiers, result, payload);
1518 return result;
1519 };
1520freeze(bare);
1521
1522// /////////////////////////////////////////////////////////////////////////////

Callers 1

assertTypeofFunction · 0.85

Calls 1

quoteFunction · 0.85

Tested by

no test coverage detected