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

Function baseAssert

ses.cjs:1835–1841  ·  view source on GitHub ↗

@type {BaseAssert}

(
    flag,
    optDetails=  undefined,
    ErrorConstructor=  undefined)

Source from the content-addressed store, hash-verified

1833 // function, I seem to get type errors from TypeScript. Why?
1834 /** @type {BaseAssert} */
1835 function baseAssert(
1836 flag,
1837 optDetails= undefined,
1838 ErrorConstructor= undefined)
1839 {
1840 flag|| fail(optDetails, ErrorConstructor);
1841 }
1842
1843 /** @type {AssertEqual} */
1844 const equal= (

Callers

nothing calls this directly

Calls 1

failFunction · 0.85

Tested by

no test coverage detected