MCPcopy
hub / github.com/jklepatch/eattheblocks / assert

Function assert

dapp-30/day2-hello-world/frontend/end/public/web3.js:11775–11777  ·  view source on GitHub ↗
(val, msg)

Source from the content-addressed store, hash-verified

11773 module.exports = assert;
11774
11775 function assert(val, msg) {
11776 if (!val) throw new Error(msg || 'Assertion failed');
11777 }
11778
11779 assert.equal = function assertEqual(l, r, msg) {
11780 if (l != r) throw new Error(msg || 'Assertion failed: ' + l + ' != ' + r);

Callers 15

web3.jsFile · 0.70
EdwardsCurveFunction · 0.70
PresetCurveFunction · 0.70
ECFunction · 0.70
SignatureFunction · 0.70
EDDSAFunction · 0.70
join32Function · 0.70
HmacDRBGFunction · 0.70
RedFunction · 0.70
Todo.test.jsFile · 0.50
Todo.test.jsFile · 0.50
timelock.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected