(condition, format, a, b, c, d, e, f)
| 332 | } |
| 333 | |
| 334 | function invariant(condition, format, a, b, c, d, e, f) { |
| 335 | validateFormat(format); |
| 336 | |
| 337 | if (!condition) { |
| 338 | var error; |
| 339 | if (format === undefined) { |
| 340 | error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); |
| 341 | } else { |
| 342 | var args = [a, b, c, d, e, f]; |
| 343 | var argIndex = 0; |
| 344 | error = new Error(format.replace(/%s/g, function () { |
| 345 | return args[argIndex++]; |
| 346 | })); |
| 347 | error.name = 'Invariant Violation'; |
| 348 | } |
| 349 | |
| 350 | error.framesToPop = 1; // we don't care about invariant's own frame |
| 351 | throw error; |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | module.exports = invariant; |
| 356 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) |
no test coverage detected