bitmessage-js/lib/utils.js

8 lines
142 B
JavaScript
Raw Normal View History

2014-12-18 17:47:18 +01:00
"use strict";
exports.assert = function(condition, message) {
if (!condition) {
throw new Error(message || "Assertion failed");
}
};