MCPcopy Create free account
hub / github.com/docker/getting-started / printWarning

Function printWarning

app/src/static/js/react-bootstrap.js:1483–1506  ·  view source on GitHub ↗
(format, args)

Source from the content-addressed store, hash-verified

1481
1482if (__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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…