@type {function(*, string=)}
(condition, text)
| 382 | |
| 383 | /** @type {function(*, string=)} */ |
| 384 | function assert(condition, text) { |
| 385 | if (!condition) { |
| 386 | abort('Assertion failed' + (text ? ': ' + text : '')); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | // We used to include malloc/free by default in the past. Show a helpful error in |
| 391 | // builds with assertions. |
no test coverage detected