MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / assert

Function assert

console/src/util.ts:42–46  ·  view source on GitHub ↗
(condition: any, message?: string)

Source from the content-addressed store, hash-verified

40 * Modeled after the function of the same name in Node.js.
41 */
42export function assert(condition: any, message?: string): asserts condition {
43 if (!condition) {
44 throw new Error(message ?? "assertion failed");
45 }
46}
47
48/**
49 * Detects the presence of ?noPoll query string parameter, which we use to disable

Callers 15

initExtensionsFunction · 0.90
walkGraphFunction · 0.90
useEnvironmentGateFunction · 0.90
mzVersionIsGteFunction · 0.90
selectReactSelectOptionFunction · 0.90
EnvironmentRoutesFunction · 0.90
formatArrayFunction · 0.90
getLatestCommandResultFunction · 0.90
webSocketFsm.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

connectRegionPostgresFunction · 0.68