(format, args)
| 1481 | |
| 1482 | if (__DEV__) { |
| 1483 | var printWarning = function printWarning(format, args) { |
| 1484 | var len = arguments.length; |
| 1485 | args = new Array(len > 1 ? len - 1 : 0); |
| 1486 | |
| 1487 | for (var key = 1; key < len; key++) { |
| 1488 | args[key - 1] = arguments[key]; |
| 1489 | } |
| 1490 | |
| 1491 | var argIndex = 0; |
| 1492 | var message = 'Warning: ' + format.replace(/%s/g, function () { |
| 1493 | return args[argIndex++]; |
| 1494 | }); |
| 1495 | |
| 1496 | if (typeof console !== 'undefined') { |
| 1497 | console.error(message); |
| 1498 | } |
| 1499 | |
| 1500 | try { |
| 1501 | // --- Welcome to debugging React --- |
| 1502 | // This error was thrown as a convenience so that you can use this stack |
| 1503 | // to find the callsite that caused this warning to fire. |
| 1504 | throw new Error(message); |
| 1505 | } catch (x) {} |
| 1506 | }; |
| 1507 | |
| 1508 | warning = function (condition, format, args) { |
| 1509 | var len = arguments.length; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…