about summary refs log blame commit diff stats
path: root/qjs/utils.js
blob: eaae75335f1b4ca96f56925098a033f9d5a89973 (plain) (tree)
1
2
3
4
5
6
7






                                                       
// wicked simple testing in place of console.assert
export function assert(condition, message) {
    if (!condition) {
        throw new Error(message || 'Assertion failed');
    }
}