MCPcopy
hub / github.com/vuejs/core / assert

Function assert

packages/compiler-core/src/utils.ts:276–281  ·  view source on GitHub ↗
(condition: boolean, msg?: string)

Source from the content-addressed store, hash-verified

274}
275
276export function assert(condition: boolean, msg?: string): void {
277 /* v8 ignore next 3 */
278 if (!condition) {
279 throw new Error(msg || `unexpected compiler condition`)
280 }
281}
282
283export function findDir(
284 node: ElementNode,

Callers 6

genNodeFunction · 0.90
buildSlotsFunction · 0.90
resolveDefineFunction · 0.50
processDeclarationFunction · 0.50
renderChunkFunction · 0.50
writeBundleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected