summaryrefslogtreecommitdiff
path: root/js/assert.js
blob: 539e5b0e0777ec6be75997565480b49c88abf9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
define(function() {
    'use strict';

    function assert(cond, message) {
        if (!(cond)) {
            throw message;
        }
    }

    return assert;
});