MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / guardError

Function guardError

test/compute-engine/fungrim-compile.test.ts:77–81  ·  view source on GitHub ↗
(assumptions: unknown, variables: string[])

Source from the content-addressed store, hash-verified

75}
76
77function guardError(assumptions: unknown, variables: string[]): string {
78 const r = compileGuards(assumptions, variables);
79 if (!('error' in r)) throw new Error('expected a guard-compilation error');
80 return r.error;
81}
82
83// ---------------------------------------------------------------------------
84// wildcardization

Callers 1

Calls 1

compileGuardsFunction · 0.90

Tested by

no test coverage detected