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

Function assertEqual

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

Source from the content-addressed store, hash-verified

19}
20
21export function assertEqual(
22 value1: any,
23 value2: any,
24 text: string,
25 ...parts: any[]
26): asserts value1 is typeof value2 {
27 if (qDev) {
28 if (value1 === value2) {
29 return;
30 }
31 throwErrorAndStop(ASSERT_DISCLAIMER + text, ...parts);
32 }
33}
34
35export function assertFail(text: string, ...parts: any[]): never;
36export function assertFail(text: string, ...parts: any[]) {

Callers 8

_pauseFromContextsFunction · 0.90
createProxyFunction · 0.90
_wrapPropFunction · 0.90
diffVnodeFunction · 0.90
createElmFunction · 0.90
removeMethod · 0.90
insertBeforeToMethod · 0.90
runSubscriberFunction · 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…