MCPcopy Create free account
hub / github.com/GoogleChrome/samples / assert

Function assert

sqlite-wasm-cos/sqlite3-node.mjs:220–227  ·  view source on GitHub ↗

@type {function(*, string=)}

(condition, text)

Source from the content-addressed store, hash-verified

218// TODO(sbc): Make this the default even without STRICT enabled.
219/** @type {function(*, string=)} */
220function assert(condition, text) {
221 if (!condition) {
222 // This build was created without ASSERTIONS defined. `assert()` should not
223 // ever be called in this configuration but in case there are callers in
224 // the wild leave this simple abort() implementation here for now.
225 abort(text);
226 }
227}
228
229/**
230 * Indicates whether filename is delivered via file protocol (as opposed to http/https)

Callers

nothing calls this directly

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected