MCPcopy Index your code
hub / github.com/angular/angular / throwError

Function throwError

packages/core/src/util/assert.ts:111–116  ·  view source on GitHub ↗
(msg: string, actual?: any, expected?: any, comparison?: string)

Source from the content-addressed store, hash-verified

109export function throwError(msg: string): never;
110export function throwError(msg: string, actual: any, expected: any, comparison: string): never;
111export function throwError(msg: string, actual?: any, expected?: any, comparison?: string): never {
112 throw new Error(
113 `ASSERTION ERROR: ${msg}` +
114 (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`),
115 );
116}
117
118export function assertDomNode(node: any): asserts node is Node {
119 if (!(node instanceof Node)) {

Callers 15

createComponentMethod · 0.90
assertTNodeTypeFunction · 0.90
assertPureTNodeTypeFunction · 0.90
assertTNodeForTViewFunction · 0.90
assertTNodeFunction · 0.90
assertTIcuFunction · 0.90
assertComponentTypeFunction · 0.90
assertNgModuleTypeFunction · 0.90
assertDirectiveDefFunction · 0.90
assertBetweenFunction · 0.90
isInCheckNoChangesModeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…