MCPcopy Index your code
hub / github.com/sql-js/sql.js / assert

Function assert

js/sql-debug.js:455–459  ·  view source on GitHub ↗

@type {function(*, string=)}

(condition, text)

Source from the content-addressed store, hash-verified

453
454/** @type {function(*, string=)} */
455function assert(condition, text) {
456 if (!condition) {
457 abort('Assertion failed: ' + text);
458 }
459}
460
461var globalScope = this;
462

Callers 9

sql-debug.jsFile · 0.70
staticAllocFunction · 0.70
dynamicAllocFunction · 0.70
getNativeTypeSizeFunction · 0.70
getFuncWrapperFunction · 0.70
getCFuncFunction · 0.70
allocateFunction · 0.70
doCallbackFunction · 0.70
intArrayToStringFunction · 0.70

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…