bitmessage-js/lib/util.js
Kagami Hiiragi b8b6294f95 Use own assert
Because it weights much less that than the browserify's one.
2015-01-05 16:31:28 +03:00

8 lines
142 B
JavaScript

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