MCPcopy Create free account
hub / github.com/diffusionstudio/vits-web / ___assert_fail

Function ___assert_fail

src/piper.js:1100–1109  ·  view source on GitHub ↗
(condition, filename, line, func)

Source from the content-addressed store, hash-verified

1098 var UTF8ToString = (ptr, maxBytesToRead) =>
1099 ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : '';
1100 var ___assert_fail = (condition, filename, line, func) => {
1101 abort(
1102 `Assertion failed: ${UTF8ToString(condition)}, at: ` +
1103 [
1104 filename ? UTF8ToString(filename) : 'unknown filename',
1105 line,
1106 func ? UTF8ToString(func) : 'unknown function',
1107 ],
1108 );
1109 };
1110 function ExceptionInfo(excPtr) {
1111 this.excPtr = excPtr;
1112 this.ptr = excPtr - 24;

Callers

nothing calls this directly

Calls 2

abortFunction · 0.85
UTF8ToStringFunction · 0.85

Tested by

no test coverage detected