MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / invariant

Function invariant

code/redux/public/app.js:337–356  ·  view source on GitHub ↗
(condition, format, a, b, c, d, e, f)

Source from the content-addressed store, hash-verified

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

Callers 15

checkPropTypesFunction · 0.70
shimFunction · 0.70
checkTypeFunction · 0.70
app.jsFile · 0.70
invokeGuardedCallbackDevFunction · 0.70
recomputePluginOrderingFunction · 0.70
publishEventForPluginFunction · 0.70
publishRegistrationNameFunction · 0.70
injectEventPluginOrderFunction · 0.70
injectEventPluginsByNameFunction · 0.70
accumulateIntoFunction · 0.70
getListenerFunction · 0.70

Calls 1

validateFormatFunction · 0.70

Tested by

no test coverage detected