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'); } }