mirror of
https://github.com/CamHenlin/MessagesForMacintosh.git
synced 2024-12-01 05:51:46 +00:00
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = devAssert;
|
|
|
|
function devAssert(condition, message) {
|
|
var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')
|
|
|
|
if (!booleanCondition) {
|
|
throw new Error(message);
|
|
}
|
|
}
|