MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / assert

Function assert

src/lib/console.js:101–106  ·  view source on GitHub ↗
(condition, msg, ...substitution)

Source from the content-addressed store, hash-verified

99 function assignCustomConsole() {
100 window.console = {
101 assert(condition, msg, ...substitution) {
102 originalConsole.assert(condition, msg, ...substitution);
103 if (!condition) {
104 log("error", getStack(new Error()), msg, ...substitution);
105 }
106 },
107 clear() {
108 originalConsole.clear();
109 if (isFocused) $input.focus();

Callers

nothing calls this directly

Calls 2

getStackFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected