(condition, format, a, b, c, d, e, f)
| 349 | } |
| 350 | |
| 351 | function invariant(condition, format, a, b, c, d, e, f) { |
| 352 | validateFormat(format); |
| 353 | |
| 354 | if (!condition) { |
| 355 | var error; |
| 356 | if (format === undefined) { |
| 357 | error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); |
| 358 | } else { |
| 359 | var args = [a, b, c, d, e, f]; |
| 360 | var argIndex = 0; |
| 361 | error = new Error(format.replace(/%s/g, function () { |
| 362 | return args[argIndex++]; |
| 363 | })); |
| 364 | error.name = 'Invariant Violation'; |
| 365 | } |
| 366 | |
| 367 | error.framesToPop = 1; // we don't care about invariant's own frame |
| 368 | throw error; |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | module.exports = invariant; |
| 373 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) |
no test coverage detected