blob: 2e9e16b3706c0ae224f9fc5759c18b145a812667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = invariant;
function invariant(condition, message) {
var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')
if (!booleanCondition) {
throw new Error(message != null ? message : 'Unexpected invariant triggered.');
}
}
|