@type {function(*, string=)}
(condition, text)
| 276 | // TODO(sbc): Make this the default even without STRICT enabled. |
| 277 | /** @type {function(*, string=)} */ |
| 278 | function assert(condition, text) { |
| 279 | if (!condition) { |
| 280 | abort('Assertion failed' + (text ? ': ' + text : '')); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | // We used to include malloc/free by default in the past. Show a helpful error in |
| 285 | // builds with assertions. |
no test coverage detected