MCPcopy
hub / github.com/pixijs/pixijs / assert

Function assert

transcoders/basis/basis_transcoder.js:117–117  ·  view source on GitHub ↗
(condition, text)

Source from the content-addressed store, hash-verified

115 if (Module.noExitRuntime)noExitRuntime = Module.noExitRuntime; if (typeof WebAssembly !== 'object') { err('no native wasm support detected'); } let wasmMemory; const wasmTable = new WebAssembly.Table({ initial: 59, maximum: 59 + 0, element: 'anyfunc' }); let ABORT = false; let EXITSTATUS = 0;
116
117 function assert(condition, text) { if (!condition) { abort(`Assertion failed: ${text}`); } } const UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
118
119 function UTF8ArrayToString(u8Array, idx, maxBytesToRead)
120 {

Callers 2

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected