bitmessage-js/lib/util.js

8 lines
142 B
JavaScript
Raw Normal View History

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