MCPcopy
hub / github.com/copy/v86 / dbg_assert

Function dbg_assert

src/log.js:105–113  ·  view source on GitHub ↗

* console.assert is fucking slow * @param {string=} msg * @param {number=} level

(cond, msg, level)

Source from the content-addressed store, hash-verified

103 * @param {number=} level
104 */
105function dbg_assert(cond, msg, level)
106{
107 if(!DEBUG) return;
108
109 if(!cond)
110 {
111 dbg_assert_failed(msg);
112 }
113}
114
115
116function dbg_assert_failed(msg)

Callers 15

filesystem.jsFile · 0.85
Virtio9pFunction · 0.85
9p.jsFile · 0.85
load_kernelFunction · 0.85
make_linux_boot_romFunction · 0.85
translate_mac_addressFunction · 0.85
Ne2kFunction · 0.85
ne2k.jsFile · 0.85
IDEDeviceFunction · 0.85
ide.jsFile · 0.85
lib.jsFile · 0.85
ByteQueueFunction · 0.85

Calls 1

dbg_assert_failedFunction · 0.85

Tested by

no test coverage detected