MCPcopy Create free account
hub / github.com/material-shell/material-shell / logAssert

Function logAssert

src/utils/assert.ts:19–27  ·  view source on GitHub ↗
(shouldBeTrue: boolean, message: string)

Source from the content-addressed store, hash-verified

17}
18
19export function logAssert(shouldBeTrue: boolean, message: string): boolean {
20 if (!shouldBeTrue) {
21 GLib.log_structured('Material Shell', GLib.LogLevelFlags.FLAG_FATAL, {
22 MESSAGE: 'Assertion failed: ' + message,
23 STACKTRACE: new Error().stack,
24 });
25 }
26 return shouldBeTrue;
27}

Callers 10

constructorMethod · 0.90
destroyMethod · 0.90
tileableFocusedMethod · 0.90
closeMethod · 0.90
addMsWindowUncheckedMethod · 0.90
removeMsWindowMethod · 0.90
setLayoutByKeyMethod · 0.90
displayTileableMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected