bitmessage-js/lib/utils.js
2014-12-18 19:47:18 +03:00

8 lines
142 B
JavaScript

"use strict";
exports.assert = function(condition, message) {
if (!condition) {
throw new Error(message || "Assertion failed");
}
};