MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / assert

Function assert

src/preamble_minimal.js:9–11  ·  view source on GitHub ↗

@type {function(*, string=)}

(condition, text)

Source from the content-addressed store, hash-verified

7#if ASSERTIONS
8/** @type {function(*, string=)} */
9function assert(condition, text) {
10 if (!condition) throw text;
11}
12#endif
13
14#if ASYNCIFY == 1 // ASYNCIFY-mode requires checking ABORT variable to avoid operating if code has aborted during an unwind

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected