MCPcopy Index your code
hub / github.com/nodejs/node / assert

Function assert

lib/internal/assert.js:8–13  ·  view source on GitHub ↗
(value, message)

Source from the content-addressed store, hash-verified

6}
7
8function assert(value, message) {
9 if (!value) {
10 const ERR_INTERNAL_ASSERTION = lazyError();
11 throw new ERR_INTERNAL_ASSERTION(message);
12 }
13}
14
15function fail(message) {
16 const ERR_INTERNAL_ASSERTION = lazyError();

Callers 13

deprecateInstantiationFunction · 0.70
assignFunctionNameFunction · 0.70
anyMethod · 0.70
doShutdownMethod · 0.70
doWriteMethod · 0.70
doCloseMethod · 0.70
wrapWithSharedBufferFunction · 0.70
constructorMethod · 0.70
getMessageFunction · 0.70
errors.jsFile · 0.70
dataURLProcessorFunction · 0.70
postSendFunction · 0.70

Calls 1

lazyErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…