MCPcopy
hub / github.com/QwikDev/qwik / assertFail

Function assertFail

packages/qwik/src/core/error/assert.ts:36–40  ·  view source on GitHub ↗
(text: string, ...parts: any[])

Source from the content-addressed store, hash-verified

34
35export function assertFail(text: string, ...parts: any[]): never;
36export function assertFail(text: string, ...parts: any[]) {
37 if (qDev) {
38 throwErrorAndStop(ASSERT_DISCLAIMER + text, ...parts);
39 }
40}
41
42export function assertTrue(value1: any, text: string, ...parts: any[]): asserts value1 is true {
43 if (qDev) {

Callers 3

serializeSubscriptionFunction · 0.90
domToVnodeFunction · 0.90
findCloseFunction · 0.90

Calls 1

throwErrorAndStopFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…