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